diff --git a/web/packages/new/photos/services/ml/db.ts b/web/packages/new/photos/services/ml/db.ts index f0499a12ca..f6d2043752 100644 --- a/web/packages/new/photos/services/ml/db.ts +++ b/web/packages/new/photos/services/ml/db.ts @@ -374,7 +374,7 @@ export const updateAssumingLocalFiles = async ( */ export const indexableAndIndexedCounts = async () => { const db = await mlDB(); - const tx = db.transaction("file-status", "readwrite"); + const tx = db.transaction("file-status", "readonly"); const indexableCount = await tx.store .index("status") .count(IDBKeyRange.only("indexable"));