fix: no anon
This commit is contained in:
parent
40844d1633
commit
efd4b0392c
|
@ -51,7 +51,7 @@ export default {
|
|||
'@flecks/socket/server.request.socket': (flecks) => async ({handshake}, next) => {
|
||||
const {universe} = flecks.get('$humus/universe');
|
||||
const {user} = handshake;
|
||||
if (user) {
|
||||
if (0 !== user.id) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
handshake.entity = await universe.loadOrCreateEntity(user);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user