This commit is contained in:
Gsk54
2023-01-24 16:00:46 +01:00
parent 9282224d17
commit c879964c9b
4 changed files with 9 additions and 9 deletions

View File

@@ -74,8 +74,6 @@ export abstract class PrismaRepository<T> implements IRepository<T> {
}
}
// TODO : using any is not good, but needed for nested entities
// TODO : Refactor for good clean architecture ?
async create(entity: Partial<T> | any, include?: any): Promise<T> {
try {
const res = await this._prisma[this._model].create({