Skip to content

Commit

Permalink
πŸ› Cleaner administrator cleanup actions
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Sep 2, 2024
1 parent 9f77b6f commit 9de0a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ponder/src/productAdministrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ async function administratorCleanup(context: Context) {
// Get the administrators to delete
const administrators = await ProductAdministrator.findMany({
where: {
isOwner: false,
roles: 0n,
AND: [{ isOwner: false }, { roles: 0n }],
},
});

// Delete them
for (const admin of administrators.items) {
console.log(`Will delete administrator ${admin.id}`);
await ProductAdministrator.delete({ id: admin.id });
}
}

0 comments on commit 9de0a00

Please sign in to comment.