diff --git a/apps/api/src/routes/v1_identities_updateIdentity.happy.test.ts b/apps/api/src/routes/v1_identities_updateIdentity.happy.test.ts index 88260819a1..fccf5baf87 100644 --- a/apps/api/src/routes/v1_identities_updateIdentity.happy.test.ts +++ b/apps/api/src/routes/v1_identities_updateIdentity.happy.test.ts @@ -124,6 +124,7 @@ test("sets new ratelimits", async (t) => { where: (table, { eq }) => eq(table.identityId, identity.id), }); + console.log({ found }) expect(found.length).toBe(ratelimits.length); for (const rl of ratelimits) { expect( diff --git a/apps/api/src/routes/v1_identities_updateIdentity.ts b/apps/api/src/routes/v1_identities_updateIdentity.ts index 6e2ff74b3e..03a44eafa0 100644 --- a/apps/api/src/routes/v1_identities_updateIdentity.ts +++ b/apps/api/src/routes/v1_identities_updateIdentity.ts @@ -253,7 +253,6 @@ export const registerV1IdentitiesUpdateIdentity = (app: App) => /** * Delete undesired ratelimits */ - for (const rl of deleteRatelimits) { await tx.delete(schema.ratelimits).where(eq(schema.ratelimits.id, rl.id)); auditLogs.push({