do not throw when attempting to put instances with errors to cache

This commit is contained in:
abp 2025-07-29 10:09:23 +02:00
parent 5294ac009d
commit b61d6c2abd
No known key found for this signature in database
GPG key ID: 791D4EC38A7AA7C2
2 changed files with 2 additions and 2 deletions

View file

@ -218,7 +218,7 @@ export class EphemeralCacheStorage implements CacheStorage {
const instanceId = AttributeModel.getAttribute<IdTuple | Id>(instanceClone, "_id", typeModel)
let { listId, elementId } = expandId(instanceId)
if (hasError(instance)) {
throw new ProgrammingError(
console.warn(
`Trying to put parsed instance with _errors to ephemeral cache. Type: ${typeModel.app}/${typeModel.name}, Id: ["${listId}", "${elementId}"]`,
)
}