(ctx context.Context, questionID, answerID string)
| 180 | } |
| 181 | |
| 182 | func (qs *QuestionCommon) UpdateAccepted(ctx context.Context, questionID, answerID string) error { |
| 183 | question := &entity.Question{} |
| 184 | question.ID = questionID |
| 185 | question.AcceptedAnswerID = answerID |
| 186 | return qs.questionRepo.UpdateAccepted(ctx, question) |
| 187 | } |
| 188 | |
| 189 | func (qs *QuestionCommon) UpdateLastAnswer(ctx context.Context, questionID, answerID string) error { |
| 190 | question := &entity.Question{} |
nothing calls this directly
no test coverage detected