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 {
|
||||
getInstance: function (user) {
|
||||
getInstance: async function (user) {
|
||||
if (!instance) {
|
||||
instance = createInstance(user);
|
||||
instance = await createInstance(user);
|
||||
}
|
||||
return instance;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue