tnx-shared 5.1.677 → 5.1.678

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.
@@ -12081,9 +12081,10 @@
12081
12081
  var apiUrl = this.serviceUri + "/GetLowerStaffsByUserId?userId=" + id;
12082
12082
  return this.defaultGet(apiUrl);
12083
12083
  };
12084
- UserService.prototype.markAsAdmin = function (userId, isAdmin) {
12084
+ UserService.prototype.markAsAdmin = function (userId, isAdmin, isSuper) {
12085
12085
  var _this = this;
12086
- var url = this.serviceUri + "/markAsAdmin/" + userId + "/" + isAdmin;
12086
+ if (isSuper === void 0) { isSuper = true; }
12087
+ var url = this.serviceUri + "/markAsAdmin/" + userId + "/" + isAdmin + "?isSuper=" + isSuper;
12087
12088
  return this._http
12088
12089
  .put(url, isAdmin)
12089
12090
  .pipe(operators.catchError(function (err) { return _this.handleError(err, _this._injector); }))