Update getInstance
This commit is contained in:
parent
b48114b8bb
commit
38284ec7bf
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue