RED-6713: store tenant with username or email

This commit is contained in:
Dan Percic 2023-06-02 12:18:33 +03:00
parent 8be2955bcb
commit f98edcaca6
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@ export const mainResolver: ResolveFn<void> = async () => {
}
loadingService.stop();
tenantsService.storeTenant(userService.currentUser.email);
const currentUser = userService.currentUser;
tenantsService.storeTenant(currentUser.email ?? currentUser.username);
logger.info('[ROUTES] Main resolver finished!');
};

@ -1 +1 @@
Subproject commit daf516e9fef6206f39d4bbfff3ff6b4b763f4685
Subproject commit 140ad55646af8c19982a0f69877908c3f998d9d9