mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 12:33:21 +00:00
fix orderBy not allowing null
This commit is contained in:
@@ -61,7 +61,7 @@ export class DecksRepository {
|
||||
maxCardsCount,
|
||||
orderBy,
|
||||
}: GetAllDecksDto): Promise<PaginatedDecks> {
|
||||
if (!orderBy) {
|
||||
if (!orderBy || orderBy === 'null') {
|
||||
orderBy = 'updated-desc'
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user