commit | 37b5f451a02c7b7cefb87819da1dd3cdc4345758 | [log] [tgz] |
---|---|---|
author | abeizn <zikuan.an@merico.dev> | Thu May 26 19:42:12 2022 +0800 |
committer | abeizn <zikuan.an@merico.dev> | Thu May 26 19:42:12 2022 +0800 |
tree | aeb1fd4af227a1472a0ab669de5d7e69b53cb316 | |
parent | ad6526453f732bc05804c7dfcfef828c68f7b377 [diff] |
fix: key to
diff --git a/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go b/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go index a8f1d78..09c746b 100644 --- a/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go +++ b/plugins/refdiff/tasks/refs_pr_cherry_pick_calculator.go
@@ -92,7 +92,7 @@ var parentPrId string err = db.Model(&code.PullRequest{}). - Where("key = ? and base_repo_id = ?", parentPrKeyInt, repoId). + Where("`key` = ? and base_repo_id = ?", parentPrKeyInt, repoId). Pluck("id", &parentPrId).Error if err != nil { return err