mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 20:59:26 +00:00
fix order by cardscount
This commit is contained in:
@@ -96,7 +96,7 @@ export class DecksRepository {
|
||||
['ASC', 'DESC'].includes(direction)
|
||||
) {
|
||||
if (field === 'cardsCount') {
|
||||
orderField = 'cardsCount'
|
||||
orderField = '"cardsCount"'
|
||||
} else if (field === 'author.name') {
|
||||
orderField = 'a.name'
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user