remove BlobToFileMapping catch guards

by now, every EntityEventUpdate that was referencing this
type has expired.

fixes 1f331696cf
fixes 1919cee2f5
This commit is contained in:
nig 2024-07-01 14:54:13 +02:00 committed by nig
parent 9badfb565f
commit 8cba52717a
No known key found for this signature in database
GPG key ID: 1A7FBE34EDE9B4CD
2 changed files with 3 additions and 21 deletions

View file

@ -78,13 +78,7 @@ export class EphemeralCacheStorage implements CacheStorage {
async deleteIfExists<T>(typeRef: TypeRef<T>, listId: Id | null, id: Id): Promise<void> {
const path = typeRefToPath(typeRef)
let typeModel: TypeModel
try {
typeModel = await resolveTypeReference(typeRef)
} catch (e) {
// prevent failed lookup for BlobToFileMapping - this catch block can be removed after May 2023
console.log("couldn't resolve typeRef ", typeRef)
return
}
typeModel = await resolveTypeReference(typeRef)
switch (typeModel.type) {
case TypeId.Element:
this.entities.get(path)?.delete(id)