1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Fixed fetching user logic for Joplin Cloud

This commit is contained in:
Laurent Cozic 2023-10-23 16:58:50 +01:00
parent a77462f8ea
commit 154619cc42

View File

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