mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2026-01-23 05:12:07 +00:00
fix orderBy not allowing null
This commit is contained in:
@@ -65,7 +65,7 @@ export class CardsRepository {
|
||||
orderBy,
|
||||
}: GetAllCardsInDeckDto
|
||||
): Promise<PaginatedCardsWithGrade> {
|
||||
if (!orderBy) {
|
||||
if (!orderBy || orderBy === 'null') {
|
||||
orderBy = 'updated-desc'
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user