fix(xo-server): close connections of deleted users

Fixes #5235
This commit is contained in:
Julien Fontanet 2023-06-17 16:24:32 +02:00 committed by Florent BEAUCHAMP
parent ef2bd2b59d
commit 3c6033f904

View File

@ -117,6 +117,12 @@ export default class {
.then(group => this._removeUserFromGroup(id, group))
::ignoreErrors()
})
for (const connection of this._app.apiConnections) {
if (connection.get('user_id', undefined) === id) {
connection.close()
}
}
}
doesUserExist(id) {