9h sang tao code tiep

This commit is contained in:
2024-10-28 02:56:36 +07:00
parent adcce52f06
commit f787d0c194
23 changed files with 61 additions and 34 deletions

View File

@@ -1,5 +1,4 @@
import { Inject, Injectable } from '@nestjs/common';
import { Int } from '@nestjs/graphql';
import {
type BaseEnum,
@@ -247,7 +246,7 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
fields[field.name] = type;
}
});
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
return fields as {};
},
});
@@ -286,7 +285,6 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
) && !relationIds.includes(field.name),
)
.forEach((field) => {
// biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
let type;
switch (field.kind) {
case 'scalar':
@@ -389,7 +387,6 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
) && !relationIds.includes(field.name),
)
.forEach((field) => {
// biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
let type;
switch (field.kind) {
case 'scalar':
@@ -450,7 +447,6 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
) && !relationIds.includes(field.name),
)
.forEach((field) => {
// biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
let type;
switch (field.kind) {
case 'scalar':