diff --git a/cmd/scripts/update_santa_badges_levels_and_roles_tasks/update_santa_badges_levels_and_roles_tasks.go b/cmd/scripts/update_santa_badges_levels_and_roles_tasks/update_santa_badges_levels_and_roles_tasks.go index c2c6276..09ba690 100644 --- a/cmd/scripts/update_santa_badges_levels_and_roles_tasks/update_santa_badges_levels_and_roles_tasks.go +++ b/cmd/scripts/update_santa_badges_levels_and_roles_tasks/update_santa_badges_levels_and_roles_tasks.go @@ -117,7 +117,7 @@ func (u *updater) update(ctx context.Context, bugfixStartTimestamp *time.Time) { AND u.username != u.id AND u.created_at < $1 GROUP BY u.id - ORDER BY u.hash_code ASC + ORDER BY u.id ASC LIMIT $2 OFFSET $3` usrs, err := storagepg.Select[eskimoUser](ctx, u.dbEskimo, sql, bugfixStartTimestamp.Time, maxLimit, offset)