mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
remove BlobToFileMapping catch guards
by now, every EntityEventUpdate that was referencing this type has expired. fixes1f331696cffixes1919cee2f5
This commit is contained in:
parent
9badfb565f
commit
8cba52717a
2 changed files with 3 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue