mirror of https://gitee.com/answerdev/answer.git
update question
This commit is contained in:
parent
82307f9c6b
commit
e1195a183a
|
@ -11,6 +11,7 @@ import (
|
||||||
questioncommon "github.com/answerdev/answer/internal/service/question_common"
|
questioncommon "github.com/answerdev/answer/internal/service/question_common"
|
||||||
tagcommon "github.com/answerdev/answer/internal/service/tag_common"
|
tagcommon "github.com/answerdev/answer/internal/service/tag_common"
|
||||||
"github.com/answerdev/answer/pkg/obj"
|
"github.com/answerdev/answer/pkg/obj"
|
||||||
|
"github.com/answerdev/answer/pkg/uid"
|
||||||
"github.com/segmentfault/pacman/errors"
|
"github.com/segmentfault/pacman/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -50,6 +51,7 @@ func (os *ObjService) GetUnreviewedRevisionInfo(ctx context.Context, objectID st
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
questionInfo.ID = uid.EnShortID(questionInfo.ID)
|
||||||
if !exist {
|
if !exist {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -85,6 +87,7 @@ func (os *ObjService) GetUnreviewedRevisionInfo(ctx context.Context, objectID st
|
||||||
if !exist {
|
if !exist {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
questionInfo.ID = uid.EnShortID(questionInfo.ID)
|
||||||
objInfo = &schema.UnreviewedRevisionInfoInfo{
|
objInfo = &schema.UnreviewedRevisionInfoInfo{
|
||||||
ObjectID: answerInfo.ID,
|
ObjectID: answerInfo.ID,
|
||||||
Title: questionInfo.Title,
|
Title: questionInfo.Title,
|
||||||
|
|
Loading…
Reference in New Issue