Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/backend/src/resolvers/types/Questionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class QuestionaryResolver {
);
}

@FieldResolver(() => Boolean)
@FieldResolver(() => Boolean, { nullable: true })
async isCompleted(
@Root() questionary: Questionary,
@Ctx() context: ResolverContext
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/resolvers/types/QuestionaryStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class QuestionaryStep implements Partial<QuestionaryStepOrigin> {
public topic: Topic;

@Field()
public isCompleted: boolean;
public isCompleted?: boolean;

@Field(() => [Answer])
public fields: Answer[];
Expand Down
Loading