mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 05:09:26 +00:00
fix orderby
This commit is contained in:
@@ -59,7 +59,7 @@ export class DecksRepository {
|
|||||||
itemsPerPage,
|
itemsPerPage,
|
||||||
minCardsCount,
|
minCardsCount,
|
||||||
maxCardsCount,
|
maxCardsCount,
|
||||||
orderBy,
|
orderBy = 'updated-desc',
|
||||||
}: GetAllDecksDto): Promise<PaginatedDecks> {
|
}: GetAllDecksDto): Promise<PaginatedDecks> {
|
||||||
try {
|
try {
|
||||||
const where = {
|
const where = {
|
||||||
|
|||||||
Reference in New Issue
Block a user