fix schema

This commit is contained in:
2023-07-24 11:41:21 +02:00
parent 5fafb779a7
commit 86f95efe1b
3 changed files with 10 additions and 7 deletions

View File

@@ -122,7 +122,7 @@ export class DecksRepository {
}
}
public async findDeckById(id: string) {
public async findDeckById(id: string): Promise<Deck> {
try {
return await this.prisma.deck.findUnique({
where: {
@@ -135,7 +135,7 @@ export class DecksRepository {
}
}
public async findDeckByCardId(cardId: string) {
public async findDeckByCardId(cardId: string): Promise<Deck> {
try {
const card = await this.prisma.card.findUnique({
where: {