Skip to content

Commit 3b9f137

Browse files
authored
fix: edit question fails when short links enabled (apache#1554)
Close apache#1553
1 parent 897fc8c commit 3b9f137

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/repo/tag/tag_rel_repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ func (tr *tagRelRepo) CountTagRelByTagID(ctx context.Context, tagID string) (cou
195195
// GetTagRelDefaultStatusByObjectID get tag rel default status
196196
func (tr *tagRelRepo) GetTagRelDefaultStatusByObjectID(ctx context.Context, objectID string) (status int, err error) {
197197
question := entity.Question{}
198+
objectID = uid.DeShortID(objectID)
198199
exist, err := tr.data.DB.Context(ctx).ID(objectID).Cols("show", "status").Get(&question)
199200
if err != nil {
200201
err = errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()

0 commit comments

Comments
 (0)