Server socket event fixes

This commit is contained in:
Paul Nettleton 2022-12-22 16:26:11 -06:00
parent a9ee9031c3
commit 2cba83f1dd
6 changed files with 11 additions and 11 deletions

View file

@ -48,7 +48,7 @@ class UserController {
var newUser = new User(account)
var success = await this.db.insertEntity('user', newUser)
if (success) {
SocketAuthority.adminEmitter('user_added', newUser)
SocketAuthority.adminEmitter('user_added', newUser.toJSONForBrowser())
res.json({
user: newUser.toJSONForBrowser()
})