fix: add missing await

This commit is contained in:
Ammar Ahmed
2022-06-11 13:13:14 +05:00
parent adca658f05
commit 503dba3207

View File

@@ -12,7 +12,7 @@ export const ignoredMessages = ['Sync already running', 'Not allowed to start se
const run = async (context = 'global', forced = false, full = true) => {
let result = false;
const userstore = useUserStore.getState();
const user = db.user.getUser();
const user = await db.user.getUser();
if (!user) {
initialize();
return true;