[desktop] Remove unnecessary readwrite tx

This commit is contained in:
Manav Rathi
2024-08-24 11:22:13 +05:30
parent de341b2621
commit 9f166d2e48

View File

@@ -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"));