Skip to content

Commit 16349b7

Browse files
committed
Add: orderBy options to PostService
1 parent b19a20c commit 16349b7

File tree

1 file changed

+4
-0
lines changed
  • packages/velog-cron/src/services/PostService

1 file changed

+4
-0
lines changed

packages/velog-cron/src/services/PostService/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ export class PostService implements Service {
217217
// gte: 5,
218218
// },
219219
},
220+
orderBy: {
221+
usage_count: 'desc',
222+
last_used_at: 'desc',
223+
},
220224
})
221225

222226
const checkKeyword = bannedKeywords

0 commit comments

Comments
 (0)