mirror of https://gitee.com/answerdev/answer.git
fix question revision
This commit is contained in:
parent
7794dd2b5c
commit
d1f951d066
|
@ -86,7 +86,7 @@ func (rs *RevisionService) RevisionAudit(ctx context.Context, req *schema.Revisi
|
||||||
if ok {
|
if ok {
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
question := &entity.Question{}
|
question := &entity.Question{}
|
||||||
question.ID = req.ID
|
question.ID = questioninfo.ID
|
||||||
question.Title = questioninfo.Title
|
question.Title = questioninfo.Title
|
||||||
question.OriginalText = questioninfo.Content
|
question.OriginalText = questioninfo.Content
|
||||||
question.ParsedText = questioninfo.HTML
|
question.ParsedText = questioninfo.HTML
|
||||||
|
@ -122,7 +122,7 @@ func (rs *RevisionService) RevisionAudit(ctx context.Context, req *schema.Revisi
|
||||||
if ok {
|
if ok {
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
insertData := new(entity.Answer)
|
insertData := new(entity.Answer)
|
||||||
insertData.ID = req.ID
|
insertData.ID = answerinfo.ID
|
||||||
insertData.OriginalText = answerinfo.Content
|
insertData.OriginalText = answerinfo.Content
|
||||||
insertData.ParsedText = answerinfo.HTML
|
insertData.ParsedText = answerinfo.HTML
|
||||||
insertData.UpdatedAt = now
|
insertData.UpdatedAt = now
|
||||||
|
|
Loading…
Reference in New Issue