fix: resolve MeiliSearch plugin not updating new answers

This commit is contained in:
hbsciw
2024-01-27 07:30:27 +00:00
committed by kumfo
parent 1b1c994a22
commit db0eb2b583
+1 -1
View File
@@ -416,7 +416,7 @@ func (ar *answerRepo) updateSearch(ctx context.Context, answerID string) (err er
// get question
var (
question *entity.Question
question = new(entity.Question)
)
exist, err = ar.data.DB.Context(ctx).Where("id = ?", answer.QuestionID).Get(&question)
if err != nil {