@riocrypto/common 1.0.973 → 1.0.974
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.
|
@@ -186,7 +186,11 @@ class RioAdminClient {
|
|
|
186
186
|
}
|
|
187
187
|
getUser(userId) {
|
|
188
188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
|
|
189
|
+
let url = "/api/users";
|
|
190
|
+
if (userId) {
|
|
191
|
+
url += `/${userId}`;
|
|
192
|
+
}
|
|
193
|
+
const { data } = yield this.axios.get(url);
|
|
190
194
|
return data;
|
|
191
195
|
});
|
|
192
196
|
}
|
|
@@ -105,7 +105,11 @@ class RioClient {
|
|
|
105
105
|
}
|
|
106
106
|
getUser(userId) {
|
|
107
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
|
|
108
|
+
let url = "/api/users";
|
|
109
|
+
if (userId) {
|
|
110
|
+
url += `/${userId}`;
|
|
111
|
+
}
|
|
112
|
+
const { data } = yield this.axios.get(url);
|
|
109
113
|
return data;
|
|
110
114
|
});
|
|
111
115
|
}
|