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.
@@ -681,7 +681,7 @@ class AbstractApi {
681
681
  }
682
682
  else {
683
683
  formData = new FormData();
684
- if (params.formData) {
684
+ if (params === null || params === void 0 ? void 0 : params.formData) {
685
685
  for (const key in params.formData) {
686
686
  formData.append(key, params.formData[key]);
687
687
  }
@@ -3046,7 +3046,7 @@ var EntityAttachment;
3046
3046
  throw ("Entity ID, Type ID, and File are required.");
3047
3047
  }
3048
3048
  const url = `entity/${entityId}/attachment/${typeId}`;
3049
- const res = yield api.UPLOAD(url, file, reqParams);
3049
+ const res = yield api.UPLOAD(url, file, Api.PrepReqParams(reqParams));
3050
3050
  api.Cache.RemoveByStartsWith(GetListCacheKey(entityId));
3051
3051
  return {
3052
3052
  attachment: res