Skip to content

Commit

Permalink
Add: orderBy options to PostService
Browse files Browse the repository at this point in the history
  • Loading branch information
winverse committed Mar 13, 2024
1 parent b19a20c commit 16349b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/velog-cron/src/services/PostService/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ export class PostService implements Service {
// gte: 5,
// },
},
orderBy: {
usage_count: 'desc',
last_used_at: 'desc',
},
})

const checkKeyword = bannedKeywords
Expand Down

0 comments on commit 16349b7

Please sign in to comment.