Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: notification update answer change object type is answer

LinkinStar1b464573e1d9
diff --git a/internal/service/answer_service.go b/internal/service/answer_service.go
index 719e9474..577c2f4a 100644
--- a/internal/service/answer_service.go
+++ b/internal/service/answer_service.go
@@ -424,7 +424,7 @@ func (as *AnswerService) notificationUpdateAnswer(ctx context.Context, questionU
Type: schema.NotificationTypeInbox,
ObjectID: answerID,
}
- msg.ObjectType = constant.QuestionObjectType
+ msg.ObjectType = constant.AnswerObjectType
msg.NotificationAction = constant.UpdateAnswer
notice_queue.AddNotification(msg)
}
@@ -436,7 +436,7 @@ func (as *AnswerService) notificationAnswerTheQuestion(ctx context.Context, ques
Type: schema.NotificationTypeInbox,
ObjectID: answerID,
}
- msg.ObjectType = constant.QuestionObjectType
+ msg.ObjectType = constant.AnswerObjectType
msg.NotificationAction = constant.AnswerTheQuestion
notice_queue.AddNotification(msg)
}