refactor source code

This commit is contained in:
2024-10-29 17:42:54 +07:00
parent 3b23d9e0b7
commit 152bb50da8
83 changed files with 8473 additions and 7577 deletions

View File

@@ -1,5 +1,5 @@
import { Module } from '@nestjs/common';
import { ServiceFeedbackSchema } from './servicefeedback.schema';
import { Module } from '@nestjs/common'
import { ServiceFeedbackSchema } from './servicefeedback.schema'
@Module({
providers: [ServiceFeedbackSchema],

View File

@@ -1,12 +1,12 @@
import { Inject, Injectable } from '@nestjs/common';
import { Inject, Injectable } from '@nestjs/common'
import {
Pothos,
PothosRef,
PothosSchema,
SchemaBuilderToken,
} from '@smatch-corp/nestjs-pothos';
import { Builder } from '../Graphql/graphql.builder';
import { PrismaService } from '../Prisma/prisma.service';
} from '@smatch-corp/nestjs-pothos'
import { Builder } from '../Graphql/graphql.builder'
import { PrismaService } from '../Prisma/prisma.service'
@Injectable()
export class ServiceFeedbackSchema extends PothosSchema {
@@ -14,7 +14,7 @@ export class ServiceFeedbackSchema extends PothosSchema {
@Inject(SchemaBuilderToken) private readonly builder: Builder,
private readonly prisma: PrismaService,
) {
super();
super()
}
@PothosRef()
@@ -54,7 +54,7 @@ export class ServiceFeedbackSchema extends PothosSchema {
description: 'The service that was provided.',
}),
}),
});
})
}
@Pothos()
@@ -72,9 +72,9 @@ export class ServiceFeedbackSchema extends PothosSchema {
take: args.take ?? undefined,
orderBy: args.orderBy ?? undefined,
where: args.filter ?? undefined,
});
})
},
}),
}));
}))
}
}