bruce-models 1.1.8 → 1.1.9
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 +1 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +1 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +1 -1
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/types/entity/entity-attachment.d.ts +4 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -2547,7 +2547,7 @@ var EntityAttachment;
|
|
|
2547
2547
|
if (!(data === null || data === void 0 ? void 0 : data["Entity.ID"]) || !(data === null || data === void 0 ? void 0 : data["EntityAttachmentType.ID"]) || !(data === null || data === void 0 ? void 0 : data["ClientFile.ID"])) {
|
|
2548
2548
|
throw ("Entity ID, Type ID, and File ID are required.");
|
|
2549
2549
|
}
|
|
2550
|
-
const url = `entity/${data["Entity.ID"]}/attachment/${data
|
|
2550
|
+
const url = `entity/${data["Entity.ID"]}/attachment/${data.oldAttachmentTypeId}/${data["ClientFile.ID"]}`;
|
|
2551
2551
|
data = yield api.PUT(url, data, Api.PrepReqParams(reqParams));
|
|
2552
2552
|
api.Cache.Remove(GetCacheKey(data["Entity.ID"], data["EntityAttachmentType.ID"], data["ClientFile.ID"]));
|
|
2553
2553
|
api.Cache.RemoveByStartsWith(GetListCacheKey(data["Entity.ID"]));
|