bruce-models 0.2.5 → 0.2.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.
@@ -5188,12 +5188,12 @@ var User;
5188
5188
  /**
5189
5189
  * Completes signup using user data and a signup code.
5190
5190
  * @param api
5191
- * @param accountId
5192
5191
  * @param code
5193
5192
  * @param data
5193
+ * @param accountId
5194
5194
  * @returns
5195
5195
  */
5196
- function SignupComplete(api, accountId, code, data) {
5196
+ function SignupComplete(api, code, data, accountId) {
5197
5197
  return __awaiter(this, void 0, void 0, function () {
5198
5198
  var res;
5199
5199
  return __generator(this, function (_a) {
@@ -5206,7 +5206,7 @@ var User;
5206
5206
  data.IsActivated = true;
5207
5207
  data.IsDisabled = false;
5208
5208
  data.key = code;
5209
- return [4 /*yield*/, api.POST("UserActivate/" + accountId, data)];
5209
+ return [4 /*yield*/, api.POST("UserActivate/" + (accountId ? accountId : ""), data)];
5210
5210
  case 1:
5211
5211
  res = _a.sent();
5212
5212
  api.Cache.RemoveByContains(Api.ECacheKey.User + Api.ECacheKey.Id + res.ID);