Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix(/image/id/meta): change uploaded to a proper unix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
GGORG0 committed Jul 20, 2022
1 parent bcff7f7 commit a1523c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "api-types"]
path = api-types
url = https://github.com/sharxhost/api-types
1 change: 1 addition & 0 deletions api-types
Submodule api-types added at 0f9180
2 changes: 1 addition & 1 deletion src/routes/imageRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ router.get("/:id/meta", (req, res) => {
shortid: dbImage.shortid,
uuid: dbImage.uuid,
name: dbImage.name,
uploaded: dbImage.uploaded,
uploaded: dbImage.uploaded.getTime(),
size: dbImage.size,
hash: dbImage.hash,
};
Expand Down

0 comments on commit a1523c9

Please sign in to comment.