9h sang tao code tiep
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user