Skip to content

Commit

Permalink
fix: Update counter cache when a user is deleted (or) suspended (#8222)
Browse files Browse the repository at this point in the history
hmacr authored Jan 11, 2025
1 parent e42b533 commit e910ecf
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/commands/userSuspender.ts
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ export default async function userSuspender({
userId: user.id,
},
transaction,
individualHooks: true,
});
await Event.create(
{
1 change: 1 addition & 0 deletions server/queues/processors/UserDeletedProcessor.ts
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ export default class UserDeletedProcessor extends BaseProcessor {
userId: event.userId,
},
transaction,
individualHooks: true,
});
await UserAuthentication.destroy({
where: {

0 comments on commit e910ecf

Please sign in to comment.