diff --git a/api/service/Question.go b/api/service/Question.go index 556886a..95af2d8 100644 --- a/api/service/Question.go +++ b/api/service/Question.go @@ -362,7 +362,7 @@ func (r *QuestionService) PutQuestion(questionId int64, req requests.PutQuestion return false, err } - if firstLabelId != *question.FirstLabelId { + if &firstLabelId != question.FirstLabelId { labelDao := dao.LabelDao{} _, err = labelDao.GetLabelFirstById(firstLabelId) if err != nil { @@ -537,7 +537,7 @@ func (r *QuestionService) PutQuestionTest(questionId int64, req requests.PutQues return false, err } - if firstLabelId != *question.FirstLabelId { + if &firstLabelId != question.FirstLabelId { labelDao := dao.LabelDao{} _, err = labelDao.GetLabelFirstById(firstLabelId) if err != nil {