From 5860d15fec1aee8fd0260b7bac977b1ab64b8ff6 Mon Sep 17 00:00:00 2001 From: "Joseph R. Quinn" <423821+quinnjr@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:14:53 -0400 Subject: [PATCH] Correcting service loading of database service --- server/articles/articles.resolver.ts | 2 +- server/certifications/certifications.resolver.ts | 2 +- server/projects/projects.resolver.ts | 2 +- server/users/users.resolver.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/articles/articles.resolver.ts b/server/articles/articles.resolver.ts index c587eec..13eed51 100644 --- a/server/articles/articles.resolver.ts +++ b/server/articles/articles.resolver.ts @@ -24,7 +24,7 @@ import { User } from '../../graphql/user/user.model'; @Resolver((of: any) => Article) export class ArticlesResolver { - constructor(/*private readonly $databaseService: DatabaseService*/) {} + constructor(/*/*private readonly $databaseService: DatabaseService*/*/) {} @ResolveField('author', (returns) => User) public async getAuthor(@Parent() article: Article): Promise { diff --git a/server/certifications/certifications.resolver.ts b/server/certifications/certifications.resolver.ts index cd07fb8..220e152 100644 --- a/server/certifications/certifications.resolver.ts +++ b/server/certifications/certifications.resolver.ts @@ -17,7 +17,7 @@ import { User } from '../../graphql/user/user.model'; @Resolver((of: any) => Certification) export class CertificationsResolver { - constructor(private readonly $databaseService: DatabaseService) {} + constructor(/*private readonly $databaseService: DatabaseService*/) {} @ResolveField('user', (returns) => User) public async getUser( diff --git a/server/projects/projects.resolver.ts b/server/projects/projects.resolver.ts index d708f38..11935e5 100644 --- a/server/projects/projects.resolver.ts +++ b/server/projects/projects.resolver.ts @@ -7,7 +7,7 @@ import { Project } from '../../graphql/project/project.model'; @Resolver((of: any) => Project) export class ProjectsResolver { - constructor(private readonly $databaseService: DatabaseService) {} + constructor(/*private readonly $databaseService: DatabaseService*/) {} @Public() @Query((returns) => [Project], { name: 'projects' }) diff --git a/server/users/users.resolver.ts b/server/users/users.resolver.ts index 22017e1..d6cbf20 100644 --- a/server/users/users.resolver.ts +++ b/server/users/users.resolver.ts @@ -12,7 +12,7 @@ import { Project } from '../../graphql/project/project.model'; @Resolver((of: any) => User) export class UsersResolver { - constructor(private readonly $databaseService: DatabaseService) {} + constructor(/*private readonly $databaseService: DatabaseService*/) {} @Query((returns) => User, { name: 'user' }) public async getUser(@Args('email') email: string): Promise {