summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 23:29:59 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 23:29:59 +0200
commit451e27998ffdcf63ad22aa4a8f59cfd1ecb6407a (patch)
tree387174c037dac304adedc719c34616b744d5402b
parent:bug: fix message sending (diff)
downloadserver-451e27998ffdcf63ad22aa4a8f59cfd1ecb6407a.tar.xz
:bug: fix migration timestampe
-rw-r--r--util/src/util/Database.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/util/Database.ts b/util/src/util/Database.ts
index 6124ffab..c71ebbd4 100644
--- a/util/src/util/Database.ts
+++ b/util/src/util/Database.ts
@@ -49,7 +49,7 @@ export function initDatabase(): Promise<Connection> {
 					connection.migrations.map((x) => ({
 						id: i++,
 						name: x.name,
-						timestamp: Date.now(),
+						timestamp: Math.floor(Date.now() / 1000),
 					}))
 				);
 			}