From 38284ec7bf582e34edf8a2bd2276f6d81a62cd51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Tue, 29 Nov 2022 18:08:14 -0300 Subject: [PATCH] Update getInstance --- src/services/provider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/provider.js b/src/services/provider.js index 30ddf81..038bf5c 100644 --- a/src/services/provider.js +++ b/src/services/provider.js @@ -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; },