mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2026-01-21 12:34:40 +00:00
add decks documentation
This commit is contained in:
@@ -4,6 +4,7 @@ import { createPrismaOrderBy } from '../../../infrastructure/common/helpers/get-
|
||||
import { Pagination } from '../../../infrastructure/common/pagination/pagination.service'
|
||||
import { PrismaService } from '../../../prisma.service'
|
||||
import { CreateCardDto, GetAllCardsInDeckDto, UpdateCardDto } from '../dto'
|
||||
import { PaginatedCards } from '../entities/cards.entity'
|
||||
|
||||
@Injectable()
|
||||
export class CardsRepository {
|
||||
@@ -59,7 +60,7 @@ export class CardsRepository {
|
||||
itemsPerPage,
|
||||
orderBy,
|
||||
}: GetAllCardsInDeckDto
|
||||
) {
|
||||
): Promise<PaginatedCards> {
|
||||
try {
|
||||
const where = {
|
||||
decks: {
|
||||
|
||||
Reference in New Issue
Block a user