bruce-models 0.2.2 → 0.2.4
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/bruce-models.es5.js
CHANGED
|
@@ -5029,7 +5029,7 @@ var User;
|
|
|
5029
5029
|
if (cacheData) {
|
|
5030
5030
|
return [2 /*return*/, cacheData];
|
|
5031
5031
|
}
|
|
5032
|
-
return [4 /*yield*/, api.GET("user/" + id)];
|
|
5032
|
+
return [4 /*yield*/, api.GET("user/" + id + (accountId ? "?clientAccountID=" + accountId : ""))];
|
|
5033
5033
|
case 1:
|
|
5034
5034
|
req = _a.sent();
|
|
5035
5035
|
api.Cache.Set(GetCacheKey(id, accountId), req, Api.DEFAULT_CACHE_DURATION);
|
|
@@ -5072,7 +5072,7 @@ var User;
|
|
|
5072
5072
|
throw ("Username is required.");
|
|
5073
5073
|
}
|
|
5074
5074
|
req = api.GET("user/loginavailable/" + username);
|
|
5075
|
-
prom = new Promise(function (
|
|
5075
|
+
prom = new Promise(function (res, rej) { return __awaiter(_this, void 0, void 0, function () {
|
|
5076
5076
|
var data, e_1;
|
|
5077
5077
|
return __generator(this, function (_a) {
|
|
5078
5078
|
switch (_a.label) {
|