소스 검색

models/migrations: fix update error

Unknwon 10 년 전
부모
커밋
63a73b43b4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/migrations/migrations.go

+ 1 - 1
models/migrations/migrations.go

@@ -289,7 +289,7 @@ func accessRefactor(x *xorm.Engine) (err error) {
 				return fmt.Errorf("select users from team: %v", err)
 			}
 			for _, user := range results {
-				userID := com.StrTo(user["user_id"]).MustInt64()
+				userID := com.StrTo(user["uid"]).MustInt64()
 				accessMap[UserRepo{userID, repoID}] = mode
 			}
 		}