mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-23 09:19:15 +02:00
Server socket event fixes
This commit is contained in:
parent
a9ee9031c3
commit
2cba83f1dd
6 changed files with 11 additions and 11 deletions
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue