Skip to content

Commit 5ada23f

Browse files
committed
Fix bug
1 parent c82dde9 commit 5ada23f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/commit_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func getNextCommitStatusIndex(repoID int64, sha string) (int64, error) {
9595
defer commiter.Close()
9696

9797
var preIdx int64
98-
_, err = ctx.Engine().SQL("SELECT max_index FROM `commit_status_index` WHERE group_id = ?", repoID).Get(&preIdx)
98+
_, err = ctx.Engine().SQL("SELECT max_index FROM `commit_status_index` WHERE repo_id = ?", repoID).Get(&preIdx)
9999
if err != nil {
100100
return 0, err
101101
}

0 commit comments

Comments
 (0)