Skip to content

Commit 80ce3e2

Browse files
Merge pull request #380 from lara-learning/fix/remove-comment-bug-from-merge
fix(backend): removed published set to true
2 parents 1ffdcfe + 6c2ae44 commit 80ce3e2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export const commentResolver: GqlResolvers<AuthenticatedContext> = {
7474
? {
7575
...report,
7676
comments: report?.comments.map((com) => {
77-
if (com.published == null) com.published = true
7877
if (com.published === false) {
7978
return com
8079
} else {

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

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

0 commit comments

Comments
 (0)