mirror of https://gitee.com/answerdev/answer.git
fix: notification update answer change object type is answer
This commit is contained in:
parent
5c9f0f7f7c
commit
1b464573e1
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue