π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
tick
Manav Rathi8dd0d5831904
diff --git a/web/apps/photos/src/services/face/db.ts b/web/apps/photos/src/services/face/db.tsindex d3d83902cf..56ab5d8368 100644--- a/web/apps/photos/src/services/face/db.ts+++ b/web/apps/photos/src/services/face/db.ts@@ -212,5 +212,15 @@ export const addFileEntry = async (fileID: number) => {* and its failure count is set to 1. Otherwise the failure count of the* existing entry is incremented.*/-// eslint-disable-next-line @typescript-eslint/no-unused-vars-export const markIndexingFailed = (fileID: string) => {};+export const markIndexingFailed = async (fileID: number) => {+ const db = await faceDB();+ const tx = db.transaction("file-status", "readwrite");+ const status = (await tx.store.get(fileID)) ?? {+ fileID,+ isIndexed: 0,+ failureCount: 0,+ };+ status.failureCount = status.failureCount + 1;+ await tx.store.put(status);+ return tx.done;+};