fix event type for cw-user
This commit is contained in:
parent
807aa1be3d
commit
a42edb0324
1 changed files with 2 additions and 1 deletions
|
|
@ -51,7 +51,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
await this.usersRepository.update(ps.userId, { mandatoryCW: newCW });
|
||||
|
||||
// Synchronize caches and other processes
|
||||
this.globalEventService.publishInternalEvent('localUserUpdated', { id: ps.userId });
|
||||
const evt = user.host == null ? 'localUserUpdated' : 'remoteUserUpdated';
|
||||
this.globalEventService.publishInternalEvent(evt, { id: ps.userId });
|
||||
|
||||
await this.moderationLogService.log(me, 'setMandatoryCW', {
|
||||
newCW,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue