Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Swap

Manav Rathi0d0d501518d5
diff --git a/web/packages/new/photos/services/ml/db.ts b/web/packages/new/photos/services/ml/db.ts
index 8eeda67992..91cee18f6f 100644
--- a/web/packages/new/photos/services/ml/db.ts
+++ b/web/packages/new/photos/services/ml/db.ts
@@ -271,7 +271,7 @@ export const updateAssumingLocalFiles = async (
* These counts are mutually exclusive. The total number of files that fall
* within the purview of the indexer is thus indexable + indexed.
*/
-export const indexedAndIndexableCounts = async () => {
+export const indexableAndIndexedCounts = async () => {
const db = await faceDB();
const tx = db.transaction("file-status", "readwrite");
const indexableCount = await tx.store
diff --git a/web/packages/new/photos/services/ml/index.ts b/web/packages/new/photos/services/ml/index.ts
index 63a6aa20e7..e0e92212d9 100644
--- a/web/packages/new/photos/services/ml/index.ts
+++ b/web/packages/new/photos/services/ml/index.ts
@@ -10,7 +10,7 @@ import {
import {
clearFaceDB,
faceIndex,
- indexedAndIndexableCounts,
+ indexableAndIndexedCounts,
} from "@/new/photos/services/ml/db";
import type { EnteFile } from "@/new/photos/types/file";
import { clientPackageName, isDesktop } from "@/next/app";
@@ -210,7 +210,7 @@ export const faceIndexingStatus = async (): Promise<FaceIndexingStatus> => {
if (!isMLEnabled())
throw new Error("Cannot get indexing status when ML is not enabled");
- const { indexedCount, indexableCount } = await indexedAndIndexableCounts();
+ const { indexedCount, indexableCount } = await indexableAndIndexedCounts();
const isIndexing = await (await worker()).isIndexing();
let phase: FaceIndexingStatus["phase"];