From 88eac6d7f3c216e7b7db42d1e0619c476233d582 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Thu, 13 Jun 2024 01:06:59 +0000 Subject: [PATCH] fix album/media file random sort (#3089) --- persistence/sql_base_repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence/sql_base_repository.go b/persistence/sql_base_repository.go index 72afc17d9..67649c4dc 100644 --- a/persistence/sql_base_repository.go +++ b/persistence/sql_base_repository.go @@ -141,7 +141,7 @@ func (r sqlRepository) applyFilters(sq SelectBuilder, options ...model.QueryOpti func (r sqlRepository) seededRandomSort() string { u, _ := request.UserFrom(r.ctx) - return fmt.Sprintf("SEEDEDRAND('%s', id)", r.tableName+u.ID) + return fmt.Sprintf("SEEDEDRAND('%s', %s.id)", r.tableName+u.ID, r.tableName) } func (r sqlRepository) resetSeededRandom(options []model.QueryOptions) {