From c7d3bcf4fbf5bb701791d0af4ef427192ae4e7b9 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Sun, 1 Dec 2024 00:38:00 -0800 Subject: [PATCH] expiresInSeconds now forced to be an integer --- .../app/api/v1/integrations/neon/oauth/idp/[[...route]]/idp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/app/api/v1/integrations/neon/oauth/idp/[[...route]]/idp.ts b/apps/backend/src/app/api/v1/integrations/neon/oauth/idp/[[...route]]/idp.ts index 18146cd6e..61024a005 100644 --- a/apps/backend/src/app/api/v1/integrations/neon/oauth/idp/[[...route]]/idp.ts +++ b/apps/backend/src/app/api/v1/integrations/neon/oauth/idp/[[...route]]/idp.ts @@ -48,7 +48,7 @@ function createAdapter(options: { } async upsert(id: string, payload: AdapterPayload, expiresInSeconds: number): Promise { - await niceUpdate(this.model, id, () => ({ payload, expiresAt: new Date(Date.now() + (expiresInSeconds ?? 0) * 1000) })); + await niceUpdate(this.model, id, () => ({ payload, expiresAt: new Date(Date.now() + (+expiresInSeconds ?? 0) * 1000) })); } async find(id: string): Promise {