Skip to content

High performance self-hosted photo and video management solution.

chore(server): follow up on #15899 (#15907)

Alexfe42e7410bfd
diff --git a/server/src/queries/map.repository.sql b/server/src/queries/map.repository.sql
index d48c420462..8b508b68ef 100644
--- a/server/src/queries/map.repository.sql
+++ b/server/src/queries/map.repository.sql
@@ -17,8 +17,6 @@ from
where
"isVisible" = $1
and "deletedAt" is null
- and "exif"."latitude" is not null
- and "exif"."longitude" is not null
and "ownerId" in ($2)
order by
"fileCreatedAt" desc
diff --git a/server/src/repositories/map.repository.ts b/server/src/repositories/map.repository.ts
index fecc9a4f52..fcfa74a5d0 100644
--- a/server/src/repositories/map.repository.ts
+++ b/server/src/repositories/map.repository.ts
@@ -96,8 +96,6 @@ export class MapRepository {
.$if(fileCreatedAfter !== undefined, (q) => q.where('fileCreatedAt', '>=', fileCreatedAfter!))
.$if(fileCreatedBefore !== undefined, (q) => q.where('fileCreatedAt', '<=', fileCreatedBefore!))
.where('deletedAt', 'is', null)
- .where('exif.latitude', 'is not', null)
- .where('exif.longitude', 'is not', null)
.where((builder) => {
const expression: Expression<SqlBool>[] = [];