mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 05:09:29 +00:00
fix schema
This commit is contained in:
@@ -11,6 +11,9 @@ export class Deck {
|
||||
created: Date
|
||||
updated: Date
|
||||
cardsCount: number
|
||||
}
|
||||
|
||||
export class DeckWithAuthor extends Deck {
|
||||
author: DeckAuthor
|
||||
}
|
||||
|
||||
@@ -20,7 +23,7 @@ export class DeckAuthor {
|
||||
}
|
||||
|
||||
export class PaginatedDecks {
|
||||
items: Deck[]
|
||||
items: DeckWithAuthor[]
|
||||
pagination: Pagination
|
||||
maxCardsCount: number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user