diff --git a/i18n/af_ZA.yaml b/i18n/af_ZA.yaml index b657a184..b9a823c6 100644 --- a/i18n/af_ZA.yaml +++ b/i18n/af_ZA.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/ar_SA.yaml b/i18n/ar_SA.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/ar_SA.yaml +++ b/i18n/ar_SA.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/az_AZ.yaml b/i18n/az_AZ.yaml index 04d2a3b8..e85776a2 100644 --- a/i18n/az_AZ.yaml +++ b/i18n/az_AZ.yaml @@ -428,7 +428,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -466,7 +466,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/bal_BA.yaml b/i18n/bal_BA.yaml index 04d2a3b8..e85776a2 100644 --- a/i18n/bal_BA.yaml +++ b/i18n/bal_BA.yaml @@ -428,7 +428,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -466,7 +466,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/ban_ID.yaml b/i18n/ban_ID.yaml index 04d2a3b8..e85776a2 100644 --- a/i18n/ban_ID.yaml +++ b/i18n/ban_ID.yaml @@ -428,7 +428,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -466,7 +466,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/bn_BD.yaml b/i18n/bn_BD.yaml index 04d2a3b8..e85776a2 100644 --- a/i18n/bn_BD.yaml +++ b/i18n/bn_BD.yaml @@ -428,7 +428,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -466,7 +466,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/bs_BA.yaml b/i18n/bs_BA.yaml index 04d2a3b8..e85776a2 100644 --- a/i18n/bs_BA.yaml +++ b/i18n/bs_BA.yaml @@ -428,7 +428,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -466,7 +466,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/ca_ES.yaml b/i18n/ca_ES.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/ca_ES.yaml +++ b/i18n/ca_ES.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/cs_CZ.yaml b/i18n/cs_CZ.yaml index 59458269..db6cc4a1 100644 --- a/i18n/cs_CZ.yaml +++ b/i18n/cs_CZ.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/cy_GB.yaml b/i18n/cy_GB.yaml index bfb40bdc..b655100d 100644 --- a/i18n/cy_GB.yaml +++ b/i18n/cy_GB.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/da_DK.yaml b/i18n/da_DK.yaml index cf4b5a3b..5c5dacd7 100644 --- a/i18n/da_DK.yaml +++ b/i18n/da_DK.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/el_GR.yaml b/i18n/el_GR.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/el_GR.yaml +++ b/i18n/el_GR.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml index 7fddd9e5..bc6161b8 100644 --- a/i18n/en_US.yaml +++ b/i18n/en_US.yaml @@ -732,7 +732,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/fi_FI.yaml b/i18n/fi_FI.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/fi_FI.yaml +++ b/i18n/fi_FI.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/he_IL.yaml b/i18n/he_IL.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/he_IL.yaml +++ b/i18n/he_IL.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/hu_HU.yaml b/i18n/hu_HU.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/hu_HU.yaml +++ b/i18n/hu_HU.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/hy_AM.yaml b/i18n/hy_AM.yaml index 04d2a3b8..e85776a2 100644 --- a/i18n/hy_AM.yaml +++ b/i18n/hy_AM.yaml @@ -428,7 +428,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -466,7 +466,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/it_IT.yaml b/i18n/it_IT.yaml index 863120b0..2c83abb4 100644 --- a/i18n/it_IT.yaml +++ b/i18n/it_IT.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/ja_JP.yaml b/i18n/ja_JP.yaml index 85da983c..140f58d4 100644 --- a/i18n/ja_JP.yaml +++ b/i18n/ja_JP.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/ko_KR.yaml b/i18n/ko_KR.yaml index 8e7ff369..5c5dacd7 100644 --- a/i18n/ko_KR.yaml +++ b/i18n/ko_KR.yaml @@ -674,7 +674,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/nl_NL.yaml b/i18n/nl_NL.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/nl_NL.yaml +++ b/i18n/nl_NL.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/no_NO.yaml b/i18n/no_NO.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/no_NO.yaml +++ b/i18n/no_NO.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/ro_RO.yaml b/i18n/ro_RO.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/ro_RO.yaml +++ b/i18n/ro_RO.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/sq_AL.yaml b/i18n/sq_AL.yaml index 04d2a3b8..e85776a2 100644 --- a/i18n/sq_AL.yaml +++ b/i18n/sq_AL.yaml @@ -428,7 +428,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -466,7 +466,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/sr_SP.yaml b/i18n/sr_SP.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/sr_SP.yaml +++ b/i18n/sr_SP.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/sv_SE.yaml b/i18n/sv_SE.yaml index 16447a3a..a5bbb593 100644 --- a/i18n/sv_SE.yaml +++ b/i18n/sv_SE.yaml @@ -433,7 +433,7 @@ ui: range: Display name up to 35 characters. slug_name: label: URL Slug - desc: 'Must use the character set "a-z", "0-9", "+ # - ."' + desc: URL slug up to 35 characters. msg: empty: URL slug cannot be empty. range: URL slug up to 35 characters. @@ -471,7 +471,7 @@ ui: label: Display Name slug_name: label: URL Slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/tr_TR.yaml b/i18n/tr_TR.yaml index ee31c996..93233769 100644 --- a/i18n/tr_TR.yaml +++ b/i18n/tr_TR.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Açıklama edit_summary: diff --git a/i18n/uk_UA.yaml b/i18n/uk_UA.yaml index cf4b5a3b..5c5dacd7 100644 --- a/i18n/uk_UA.yaml +++ b/i18n/uk_UA.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/vi_VN.yaml b/i18n/vi_VN.yaml index 91b4ccf6..4531746f 100644 --- a/i18n/vi_VN.yaml +++ b/i18n/vi_VN.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: 'Must use the character set "a-z", "0-9", "+ # - ."' + info: URL slug up to 35 characters. desc: label: Description edit_summary: diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml index c6dde9d0..a5a54289 100644 --- a/i18n/zh_CN.yaml +++ b/i18n/zh_CN.yaml @@ -716,7 +716,7 @@ ui: label: 显示名称 slug_name: label: URL 固定链接 - info: '必须由 "a-z", "0-9", "+ # - ." 组成' + info: URL 固定链接不能超过 35 个字符。 desc: label: 描述 edit_summary: diff --git a/i18n/zh_TW.yaml b/i18n/zh_TW.yaml index e6c5d11a..3455642a 100644 --- a/i18n/zh_TW.yaml +++ b/i18n/zh_TW.yaml @@ -716,7 +716,7 @@ ui: label: Display name slug_name: label: URL slug - info: '必須由 "a-z", "0-9", "+ # - ." 組成' + info: URL slug 不能超過 35 個字符。 desc: label: 描述 edit_summary: diff --git a/internal/repo/question/question_repo.go b/internal/repo/question/question_repo.go index 662776d1..82e89c9d 100644 --- a/internal/repo/question/question_repo.go +++ b/internal/repo/question/question_repo.go @@ -39,11 +39,10 @@ import ( "github.com/apache/incubator-answer/pkg/htmltext" "github.com/apache/incubator-answer/pkg/uid" "github.com/apache/incubator-answer/plugin" + "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "xorm.io/builder" "xorm.io/xorm" - - "github.com/segmentfault/pacman/errors" ) // questionRepo question repository @@ -76,7 +75,6 @@ func (qr *questionRepo) AddQuestion(ctx context.Context, question *entity.Questi if handler.GetEnableShortID(ctx) { question.ID = uid.EnShortID(question.ID) } - _ = qr.updateSearch(ctx, question.ID) return } @@ -100,7 +98,7 @@ func (qr *questionRepo) UpdateQuestion(ctx context.Context, question *entity.Que if handler.GetEnableShortID(ctx) { question.ID = uid.EnShortID(question.ID) } - _ = qr.updateSearch(ctx, question.ID) + _ = qr.UpdateSearch(ctx, question.ID) return } @@ -111,7 +109,7 @@ func (qr *questionRepo) UpdatePvCount(ctx context.Context, questionID string) (e if err != nil { return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() } - _ = qr.updateSearch(ctx, question.ID) + _ = qr.UpdateSearch(ctx, question.ID) return nil } @@ -123,7 +121,7 @@ func (qr *questionRepo) UpdateAnswerCount(ctx context.Context, questionID string if err != nil { return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() } - _ = qr.updateSearch(ctx, question.ID) + _ = qr.UpdateSearch(ctx, question.ID) return nil } @@ -155,7 +153,7 @@ func (qr *questionRepo) UpdateQuestionStatus(ctx context.Context, questionID str if err != nil { return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() } - _ = qr.updateSearch(ctx, questionID) + _ = qr.UpdateSearch(ctx, questionID) return nil } @@ -165,7 +163,7 @@ func (qr *questionRepo) UpdateQuestionStatusWithOutUpdateTime(ctx context.Contex if err != nil { return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() } - _ = qr.updateSearch(ctx, question.ID) + _ = qr.UpdateSearch(ctx, question.ID) return nil } @@ -175,7 +173,7 @@ func (qr *questionRepo) RecoverQuestion(ctx context.Context, questionID string) if err != nil { return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() } - _ = qr.updateSearch(ctx, questionID) + _ = qr.UpdateSearch(ctx, questionID) return nil } @@ -194,7 +192,7 @@ func (qr *questionRepo) UpdateAccepted(ctx context.Context, question *entity.Que if err != nil { return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() } - _ = qr.updateSearch(ctx, question.ID) + _ = qr.UpdateSearch(ctx, question.ID) return nil } @@ -204,7 +202,7 @@ func (qr *questionRepo) UpdateLastAnswer(ctx context.Context, question *entity.Q if err != nil { return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() } - _ = qr.updateSearch(ctx, question.ID) + _ = qr.UpdateSearch(ctx, question.ID) return nil } @@ -461,8 +459,8 @@ func (qr *questionRepo) AdminQuestionPage(ctx context.Context, search *schema.Ad return rows, count, nil } -// updateSearch update search, if search plugin not enable, do nothing -func (qr *questionRepo) updateSearch(ctx context.Context, questionID string) (err error) { +// UpdateSearch update search, if search plugin not enable, do nothing +func (qr *questionRepo) UpdateSearch(ctx context.Context, questionID string) (err error) { // check search plugin var s plugin.Search _ = plugin.CallSearch(func(search plugin.Search) error { @@ -543,7 +541,7 @@ func (qr *questionRepo) RemoveAllUserQuestion(ctx context.Context, userID string // update search content for _, id := range questionIDs { - _ = qr.updateSearch(ctx, id) + _ = qr.UpdateSearch(ctx, id) } return nil } diff --git a/internal/service/question_common/question.go b/internal/service/question_common/question.go index 31cdcd8f..22c4092d 100644 --- a/internal/service/question_common/question.go +++ b/internal/service/question_common/question.go @@ -72,6 +72,7 @@ type QuestionRepo interface { GetUserQuestionCount(ctx context.Context, userID string) (count int64, err error) SitemapQuestions(ctx context.Context, page, pageSize int) (questionIDList []*schema.SiteMapQuestionInfo, err error) RemoveAllUserQuestion(ctx context.Context, userID string) (err error) + UpdateSearch(ctx context.Context, questionID string) (err error) } // QuestionCommon user service diff --git a/internal/service/question_service.go b/internal/service/question_service.go index 87fb0f3f..92e3fafc 100644 --- a/internal/service/question_service.go +++ b/internal/service/question_service.go @@ -314,6 +314,7 @@ func (qs *QuestionService) AddQuestion(ctx context.Context, req *schema.Question if err != nil { return } + _ = qs.questionRepo.UpdateSearch(ctx, question.ID) revisionDTO := &schema.AddRevisionDTO{ UserID: question.UserID,