Update getInstance

This commit is contained in:
Leonardo Murça 2022-11-29 18:08:14 -03:00
parent b48114b8bb
commit 38284ec7bf

View file

@ -21,9 +21,9 @@ export const UserServiceProvider = (function () {
} }
return { return {
getInstance: function (user) { getInstance: async function (user) {
if (!instance) { if (!instance) {
instance = createInstance(user); instance = await createInstance(user);
} }
return instance; return instance;
}, },