Skip to content

Commit 824f72f

Browse files
committed
fix getProposal api error
1 parent f85d05a commit 824f72f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/backend/src/resolvers/types/Questionary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class QuestionaryResolver {
3838
);
3939
}
4040

41-
@FieldResolver(() => Boolean)
41+
@FieldResolver(() => Boolean, { nullable: true })
4242
async isCompleted(
4343
@Root() questionary: Questionary,
4444
@Ctx() context: ResolverContext

apps/backend/src/resolvers/types/QuestionaryStep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class QuestionaryStep implements Partial<QuestionaryStepOrigin> {
1010
public topic: Topic;
1111

1212
@Field()
13-
public isCompleted: boolean;
13+
public isCompleted?: boolean;
1414

1515
@Field(() => [Answer])
1616
public fields: Answer[];

0 commit comments

Comments
 (0)