bruce-models 2.6.3 → 2.6.4
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
CHANGED
|
@@ -6347,7 +6347,7 @@ var EntityAttachment;
|
|
|
6347
6347
|
api.Cache.Remove(GetCacheKey(attachments[i].ID));
|
|
6348
6348
|
}
|
|
6349
6349
|
}
|
|
6350
|
-
api.Cache.Remove(GetListCacheKey(entityId));
|
|
6350
|
+
yield api.Cache.Remove(GetListCacheKey(entityId));
|
|
6351
6351
|
return {
|
|
6352
6352
|
attachments: res.attachments
|
|
6353
6353
|
};
|
|
@@ -6385,7 +6385,8 @@ var EntityAttachment;
|
|
|
6385
6385
|
throw ("Entity id and attachment id.");
|
|
6386
6386
|
}
|
|
6387
6387
|
yield api.DELETE(`entity/${entityId}/attachments/${attachmentId}`, Api.PrepReqParams(req));
|
|
6388
|
-
api.Cache.Remove(GetCacheKey(attachmentId));
|
|
6388
|
+
yield api.Cache.Remove(GetCacheKey(attachmentId));
|
|
6389
|
+
yield api.Cache.Remove(GetListCacheKey(params.entityId));
|
|
6389
6390
|
});
|
|
6390
6391
|
}
|
|
6391
6392
|
EntityAttachment.Delete = Delete;
|