From 154619cc42b9e9f99bb73c212738fa0f302a81bc Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 23 Oct 2023 16:58:50 +0100 Subject: [PATCH] Chore: Fixed fetching user logic for Joplin Cloud --- packages/lib/utils/userFetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/utils/userFetcher.ts b/packages/lib/utils/userFetcher.ts index 165993d1f..f19f345b4 100644 --- a/packages/lib/utils/userFetcher.ts +++ b/packages/lib/utils/userFetcher.ts @@ -25,7 +25,7 @@ const userFetcher = async () => { const fileApi = await syncTarget.fileApi(); const api = fileApi.driver().api(); - if (api.userId) { + if (!api.userId) { // That can happen if we don't have a session yet or if it has been // cleared logger.info('Skipping fetching user because user ID is not available');