Skip to content

Commit

Permalink
Correcting service loading of database service
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnjr committed Oct 23, 2023
1 parent 405f631 commit 5860d15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/articles/articles.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<User | null> {
Expand Down
2 changes: 1 addition & 1 deletion server/certifications/certifications.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion server/projects/projects.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down
2 changes: 1 addition & 1 deletion server/users/users.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<User> {
Expand Down

0 comments on commit 5860d15

Please sign in to comment.