aboutsummaryrefslogtreecommitdiff
path: root/pkg/database/sql
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-23 21:25:37 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-23 21:25:37 +0200
commit1dea35b9bcb3d37d61e554a99488626da9795331 (patch)
treec8d7cea6e3b44121e067edebf91f2044f8538b6b /pkg/database/sql
parent8eeddc0bfb574aada6bb76638957421b52344bb0 (diff)
downloadlens-1dea35b9bcb3d37d61e554a99488626da9795331.tar.gz
lens-1dea35b9bcb3d37d61e554a99488626da9795331.tar.bz2
lens-1dea35b9bcb3d37d61e554a99488626da9795331.zip
feat: Remove unecessary param from repo
Diffstat (limited to 'pkg/database/sql')
-rw-r--r--pkg/database/sql/media.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/database/sql/media.go b/pkg/database/sql/media.go
index 835e262..59a4b83 100644
--- a/pkg/database/sql/media.go
+++ b/pkg/database/sql/media.go
@@ -223,7 +223,7 @@ func (r *MediaRepository) GetEmptyEXIF(ctx context.Context, pagination *media.Pa
Where("media_exifs.media_id IS NULL").
Offset(pagination.Page * pagination.Size).
Limit(pagination.Size).
- Order("created_at DESC").
+ Order("media.created_at DESC").
Find(&medias)
if result.Error != nil {