bruce-models 1.8.6 → 1.8.7

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.
@@ -675,7 +675,7 @@
675
675
  }
676
676
  else {
677
677
  formData = new FormData();
678
- if (params.formData) {
678
+ if (params === null || params === void 0 ? void 0 : params.formData) {
679
679
  for (const key in params.formData) {
680
680
  formData.append(key, params.formData[key]);
681
681
  }
@@ -2988,7 +2988,7 @@
2988
2988
  throw ("Entity ID, Type ID, and File are required.");
2989
2989
  }
2990
2990
  const url = `entity/${entityId}/attachment/${typeId}`;
2991
- const res = yield api.UPLOAD(url, file, reqParams);
2991
+ const res = yield api.UPLOAD(url, file, exports.Api.PrepReqParams(reqParams));
2992
2992
  api.Cache.RemoveByStartsWith(GetListCacheKey(entityId));
2993
2993
  return {
2994
2994
  attachment: res