fix(api-key): use date object for cleanup (#1632)

This commit is contained in:
Bereket Engida
2025-03-02 18:08:15 +03:00
committed by GitHub
parent 1719cce407
commit ff34f8f58d
2 changed files with 2 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ describe("api-key", async () => {
clientOptions: {
plugins: [apiKeyClient()],
},
testWith: "postgres",
},
);
const { headers, user } = await signInWithTestUser();

View File

@@ -64,7 +64,7 @@ export function createApiKeyRoutes({
{
field: "expiresAt" satisfies keyof ApiKey,
operator: "lt",
value: new Date().getTime(),
value: new Date(),
},
],
});