Skip to content

Commit

Permalink
chore(server): follow up on #15899 (#15907)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Feb 4, 2025
1 parent 58bf58b commit fe42e74
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions server/src/queries/map.repository.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions server/src/repositories/map.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>[] = [];

Expand Down

0 comments on commit fe42e74

Please sign in to comment.