fix: no anon

This commit is contained in:
cha0s 2022-03-24 08:05:23 -05:00
parent 40844d1633
commit efd4b0392c

View File

@ -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);
}