Skip to content

Commit 6592e21

Browse files
committed
order
1 parent e3fe877 commit 6592e21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/jobs/regular/detect_posts_locale.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def execute(args)
1515
.where(deleted_at: nil)
1616
.where("posts.user_id > 0")
1717
.where.not(raw: [nil, ""])
18-
.order(id: :desc)
18+
.order(updated_at: :desc)
1919
.limit(BATCH_SIZE)
2020
return if posts.empty?
2121

app/jobs/regular/translate_posts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def execute(args)
2525
locales,
2626
locales.size,
2727
)
28-
.order(id: :desc)
28+
.order(updated_at: :desc)
2929
.limit(BATCH_SIZE)
3030

3131
return if posts.empty?

0 commit comments

Comments
 (0)