fix event type for cw-user

This commit is contained in:
Hazelnoot 2025-07-26 18:58:10 -04:00
parent 807aa1be3d
commit a42edb0324

View file

@ -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,