Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathi83126c3ec453
diff --git a/web/apps/photos/src/constants/api.ts b/web/apps/photos/src/constants/api.ts
deleted file mode 100644
index 17571f7f37..0000000000
--- a/web/apps/photos/src/constants/api.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const REQUEST_BATCH_SIZE = 1000;
diff --git a/web/apps/photos/src/constants/redirects.ts b/web/apps/photos/src/constants/redirects.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/web/apps/photos/src/services/collectionService.ts b/web/apps/photos/src/services/collectionService.ts
index 60d4ea35cc..7fef72c532 100644
--- a/web/apps/photos/src/services/collectionService.ts
+++ b/web/apps/photos/src/services/collectionService.ts
@@ -17,7 +17,6 @@ import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";
import { getToken } from "@ente/shared/storage/localStorage/helpers";
import { getActualKey } from "@ente/shared/user";
import type { User } from "@ente/shared/user/types";
-import { REQUEST_BATCH_SIZE } from "constants/api";
import {
ALL_SECTION,
ARCHIVE_SECTION,
@@ -84,6 +83,8 @@ const UNCATEGORIZED_COLLECTION_NAME = "Uncategorized";
export const HIDDEN_COLLECTION_NAME = ".hidden";
const FAVORITE_COLLECTION_NAME = "Favorites";
+export const REQUEST_BATCH_SIZE = 1000;
+
export const getCollectionLastSyncTime = async (collection: Collection) =>
(await localForage.getItem<number>(`${collection.id}-time`)) ?? 0;
diff --git a/web/apps/photos/src/services/fileService.ts b/web/apps/photos/src/services/fileService.ts
index ef364844a2..613e9bd85e 100644
--- a/web/apps/photos/src/services/fileService.ts
+++ b/web/apps/photos/src/services/fileService.ts
@@ -18,13 +18,13 @@ import { mergeMetadata } from "@/new/photos/utils/file";
import { batch } from "@/utils/array";
import HTTPService from "@ente/shared/network/HTTPService";
import { getToken } from "@ente/shared/storage/localStorage/helpers";
-import { REQUEST_BATCH_SIZE } from "constants/api";
import exportService from "services/export";
import { Collection } from "types/collection";
import { SetFiles } from "types/gallery";
import { decryptFile, getLatestVersionFiles, sortFiles } from "utils/file";
import {
getCollectionLastSyncTime,
+ REQUEST_BATCH_SIZE,
setCollectionLastSyncTime,
} from "./collectionService";