refactor source code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { WorkshopOrganizationSchema } from './workshoporganization.schema';
|
||||
import { Module } from '@nestjs/common'
|
||||
import { WorkshopOrganizationSchema } from './workshoporganization.schema'
|
||||
|
||||
@Module({
|
||||
providers: [WorkshopOrganizationSchema],
|
||||
|
||||
@@ -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 WorkshopOrganizationSchema extends PothosSchema {
|
||||
@@ -14,7 +14,7 @@ export class WorkshopOrganizationSchema extends PothosSchema {
|
||||
@Inject(SchemaBuilderToken) private readonly builder: Builder,
|
||||
private readonly prisma: PrismaService,
|
||||
) {
|
||||
super();
|
||||
super()
|
||||
}
|
||||
@PothosRef()
|
||||
workshopOrganization() {
|
||||
@@ -38,6 +38,6 @@ export class WorkshopOrganizationSchema extends PothosSchema {
|
||||
'The date and time the workshop organization was created.',
|
||||
}),
|
||||
}),
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user