fix: notification update answer change object type is answer

This commit is contained in:
LinkinStar 2022-09-28 14:53:05 +08:00
parent 5c9f0f7f7c
commit 1b464573e1
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}