🐛 insert timestamp correctly

This commit is contained in:
Fred KISSIE
2026-01-09 01:50:56 +01:00
parent 74b16809ec
commit 7164721ee0

View File

@@ -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,