fix(striker-ui-api): handle set session without user

main
Tsu-ba-me 2 years ago
parent 5d54b5d855
commit 32ae8dd416
  1. 6
      striker-ui-api/src/session.ts

@ -99,11 +99,11 @@ export class SessionStore extends BaseSessionStore {
): Promise<void> { ): Promise<void> {
stdoutVar({ session }, `Set session ${sid}`); stdoutVar({ session }, `Set session ${sid}`);
const { const { passport: { user: userUuid } = {} } = session;
passport: { user: userUuid },
} = session;
try { try {
assert.ok(userUuid, 'Missing user identifier');
const localHostUuid = getLocalHostUUID(); const localHostUuid = getLocalHostUUID();
const modifiedDate = timestamp(); const modifiedDate = timestamp();

Loading…
Cancel
Save