Spaces:
Runtime error
Runtime error
| import { Injectable } from '@nestjs/common'; | |
| import { Comment, Prisma } from '@prisma/client'; | |
| import { PrismaService } from 'src/shared/modules/prisma/prisma.service'; | |
| import { CommentCorePaginateDto } from './dto/comment-core.dto'; | |
| import { PrismaBaseRepository } from 'src/shared/libs/prisma-base.repository'; | |
| import { CommentMessages } from 'src/shared/keys/comment.keys'; | |
| () | |
| export class CommentCoreService extends PrismaBaseRepository< | |
| Comment, | |
| CommentCorePaginateDto, | |
| Prisma.CommentCreateArgs, | |
| Prisma.CommentUpdateArgs, | |
| Prisma.CommentUpdateManyArgs, | |
| Prisma.CommentFindUniqueArgs, | |
| Prisma.CommentFindFirstArgs, | |
| Prisma.CommentFindManyArgs, | |
| Prisma.CommentDeleteArgs, | |
| Prisma.CommentDeleteManyArgs, | |
| Prisma.CommentCountArgs, | |
| Prisma.CommentUpsertArgs | |
| > { | |
| constructor(private prismaService: PrismaService) { | |
| super(prismaService.prisma.comment, { | |
| NOT_FOUND: CommentMessages.NOT_FOUND, | |
| DELETED: CommentMessages.DELETED, | |
| }); | |
| } | |
| } | |