fix(project): persist lottery project tags - #195
Open
saime428 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
例行检查
关联信息
resolves #194
变更内容
抽奖项目更新时,在同一个事务里保存项目并调用
RefreshTags。同时把Save(&project)改为Save(project)。变更原因
抽奖分支原来在保存项目后直接返回,前端传来的
project_tags没有落库。接口仍返回成功,所以用户只有刷新页面后才会发现标签没保存。本地已跑过真实 OAuth 浏览器复现、
go test ./...、后端构建和 Swagger 检查。