From 9f166d2e48f9a87737754f6c74030d5909d9d29b Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 24 Aug 2024 11:22:13 +0530 Subject: [PATCH] [desktop] Remove unnecessary readwrite tx --- web/packages/new/photos/services/ml/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));