Skip to content

Commit 0fb639b

Browse files
fix(backend): published null set to true
1 parent 924f48a commit 0fb639b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/backend/src/resolvers/comment.resolver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const commentResolver: GqlResolvers<AuthenticatedContext> = {
7070
? {
7171
...report,
7272
comments: report?.comments.map((com) => {
73+
if (com.published == null) com.published = true
7374
if (com.published === false) {
7475
return com
7576
} else {

packages/backend/src/resolvers/trainer.resolver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const trainerResolver: GqlResolvers<TrainerContext> = {
3535
? {
3636
...report,
3737
comments: report?.comments.map((com) => {
38+
if (com.published == null) com.published = true
3839
if (com.published === false) {
3940
return com
4041
} else {

0 commit comments

Comments
 (0)