aboutsummaryrefslogtreecommitdiff
path: root/pkg/database/sql
diff options
context:
space:
mode:
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 {