@axium/client 0.16.5 → 0.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/user.js +3 -3
- package/package.json +1 -1
package/dist/user.js
CHANGED
|
@@ -64,10 +64,10 @@ export async function userInfo(userId, noCache = false) {
|
|
|
64
64
|
_checkId(userId);
|
|
65
65
|
const cached = userCache.get(userId);
|
|
66
66
|
if (!noCache && cached)
|
|
67
|
-
return cached;
|
|
68
|
-
const result =
|
|
67
|
+
return await cached;
|
|
68
|
+
const result = fetchAPI('GET', 'users/:id', {}, userId);
|
|
69
69
|
userCache.set(userId, result);
|
|
70
|
-
return result;
|
|
70
|
+
return await result;
|
|
71
71
|
}
|
|
72
72
|
export async function updateUser(userId, data) {
|
|
73
73
|
_checkId(userId);
|