mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
🐛 insert timestamp correctly
This commit is contained in:
@@ -218,7 +218,7 @@ export async function calculateUserClientsForOrgs(
|
|||||||
await transaction
|
await transaction
|
||||||
.insert(approvals)
|
.insert(approvals)
|
||||||
.values({
|
.values({
|
||||||
timestamp: new Date().getTime() / 1000,
|
timestamp: Math.floor(new Date().getTime() / 1000),
|
||||||
orgId: userOrg.orgId,
|
orgId: userOrg.orgId,
|
||||||
clientId: newClient.clientId,
|
clientId: newClient.clientId,
|
||||||
userId,
|
userId,
|
||||||
|
|||||||
Reference in New Issue
Block a user