From b756a9f19cbbc1a76cd3e7c30855bcfd752a0f25 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 8 Feb 2025 13:27:25 +0800 Subject: [PATCH] :bug: Fix edit question lost it answer --- pkg/internal/http/api/questions_api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/http/api/questions_api.go b/pkg/internal/http/api/questions_api.go index 8f4c73e..021ddea 100644 --- a/pkg/internal/http/api/questions_api.go +++ b/pkg/internal/http/api/questions_api.go @@ -220,6 +220,7 @@ func editQuestion(c *fiber.Ctx) error { Attachments: data.Attachments, }, Reward: body.Reward, + Answer: body.Answer, } var newBodyMapping map[string]any