1
0
forked from noxious/server

#245 : Enhanced asset CRUD logic

This commit is contained in:
2025-02-18 17:09:15 +01:00
parent 4c7751db55
commit 0efa9fb1d5
10 changed files with 55 additions and 21 deletions

View File

@@ -45,7 +45,7 @@ export abstract class BaseEvent {
return character?.getRole() === 'gm'
}
protected emitError(message: string): void {
protected sendNotificationAndLog(message: string): void {
this.socket.emit(SocketEvent.NOTIFICATION, { title: 'Server message', message })
this.logger.error('Base event error', `Player ${this.socket.userId}: ${message}`)
}