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> {
stdoutVar({ session }, `Set session ${sid}`);
const {
passport: { user: userUuid },
} = session;
const { passport: { user: userUuid } = {} } = session;
try {
assert.ok(userUuid, 'Missing user identifier');
const localHostUuid = getLocalHostUUID();
const modifiedDate = timestamp();

Loading…
Cancel
Save