diff --git a/apps/photos/src/services/entityService.ts b/apps/photos/src/services/entityService.ts index 80219b955..0874c4701 100644 --- a/apps/photos/src/services/entityService.ts +++ b/apps/photos/src/services/entityService.ts @@ -5,7 +5,6 @@ import { getEndpoint } from 'utils/common/apiUtil'; import { logError } from 'utils/sentry'; import ComlinkCryptoWorker from 'utils/comlink/ComlinkCryptoWorker'; import { getActualKey } from 'utils/common/key'; -import { CustomError } from 'utils/error'; import { EntityType, Entity, @@ -66,9 +65,6 @@ const getEntityKey = async (type: EntityType) => { ); return { data: decryptedData, ...rest } as EntityKey; } catch (e) { - if (e.status === 404) { - throw Error(CustomError.LOCATION_TAG_ENTITY_NOT_FOUND); - } logError(e, 'Get entity key failed'); throw e; } @@ -142,9 +138,7 @@ const syncEntity = async (type: EntityType) => { await localForage.setItem(ENTITY_SYNC_TIME_TABLES[type], syncTime); } while (response.hasMore); } catch (e) { - if (e.message !== CustomError.LOCATION_TAG_ENTITY_NOT_FOUND) { - logError(e, 'Sync entity failed'); - } + logError(e, 'Sync entity failed'); } }; diff --git a/apps/photos/src/utils/error/index.ts b/apps/photos/src/utils/error/index.ts index 159936919..cbdfe3811 100644 --- a/apps/photos/src/utils/error/index.ts +++ b/apps/photos/src/utils/error/index.ts @@ -66,7 +66,6 @@ export const CustomError = { EXIF_DATA_NOT_FOUND: 'exif data not found', SELECT_FOLDER_ABORTED: 'select folder aborted', NON_MEDIA_FILE: 'non media file', - LOCATION_TAG_ENTITY_NOT_FOUND: 'location tag entity not found', }; export function parseUploadErrorCodes(error) {