Skip to content

Commit

Permalink
test(v1_identities_updateIdentity.happy.test.ts): add console.log for…
Browse files Browse the repository at this point in the history
… found variable

refactor(v1_identities_updateIdentity.ts): remove unnecessary empty line
  • Loading branch information
chronark committed Sep 24, 2024
1 parent c127323 commit 762b971
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion apps/api/src/routes/v1_identities_updateIdentity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 762b971

Please sign in to comment.