fix(core): Flush instance stopped event immediately (#10238)

This commit is contained in:
Tomi Turtiainen
2024-07-30 14:49:41 +03:00
committed by GitHub
parent a2d08846d0
commit d6770b5fca
21 changed files with 223 additions and 274 deletions

View File

@@ -253,7 +253,7 @@ export class UsersController {
await trx.delete(User, { id: userToDelete.id });
});
void this.internalHooks.onUserDeletion({
this.internalHooks.onUserDeletion({
user: req.user,
telemetryData,
publicApi: false,
@@ -294,7 +294,7 @@ export class UsersController {
await this.userService.update(targetUser.id, { role: payload.newRoleName });
void this.internalHooks.onUserRoleChange({
this.internalHooks.onUserRoleChange({
user: req.user,
target_user_id: targetUser.id,
target_user_new_role: ['global', payload.newRoleName].join(' '),