Manav Rathi 1 سال پیش
والد
کامیت
d992085dbd
2فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 2
      web/apps/photos/src/services/locationSearchService.ts
  2. 0 2
      web/packages/shared/constants/urls.ts

+ 3 - 2
web/apps/photos/src/services/locationSearchService.ts

@@ -1,4 +1,3 @@
-import { CITIES_URL } from "@ente/shared/constants/urls";
 import { logError } from "@ente/shared/sentry";
 import { logError } from "@ente/shared/sentry";
 import { LocationTagData } from "types/entity";
 import { LocationTagData } from "types/entity";
 import { Location } from "types/upload";
 import { Location } from "types/upload";
@@ -22,7 +21,9 @@ class LocationSearchService {
             if (this.citiesPromise) {
             if (this.citiesPromise) {
                 return;
                 return;
             }
             }
-            this.citiesPromise = fetch(CITIES_URL).then((response) => {
+            this.citiesPromise = fetch(
+                "https://static.ente.io/world_cities.json",
+            ).then((response) => {
                 return response.json().then((data) => {
                 return response.json().then((data) => {
                     this.cities = data["data"];
                     this.cities = data["data"];
                 });
                 });

+ 0 - 2
web/packages/shared/constants/urls.ts

@@ -15,5 +15,3 @@ export const WEB_ROADMAP_URL = "https://github.com/ente-io/ente/discussions";
 
 
 export const DESKTOP_ROADMAP_URL =
 export const DESKTOP_ROADMAP_URL =
     "https://github.com/ente-io/ente/discussions";
     "https://github.com/ente-io/ente/discussions";
-
-export const CITIES_URL = "https://static.ente.io/world_cities.json";