mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-13 22:01:37 +00:00
Fix sql column error
This commit is contained in:
@@ -511,14 +511,14 @@ ccnet_org_manager_get_org_emailusers (CcnetOrgManager *mgr,
|
||||
if (start == -1 && limit == -1) {
|
||||
sql = "SELECT u.email FROM OrgUser u, Organization o "
|
||||
"WHERE u.org_id = o.org_id AND "
|
||||
"WHERE o.url_prefix = ? "
|
||||
"o.url_prefix = ? "
|
||||
"ORDER BY email";
|
||||
rc = seaf_db_statement_foreach_row (db, sql, get_org_emailusers, &ret,
|
||||
1, "string", url_prefix);
|
||||
} else {
|
||||
sql = "SELECT u.email FROM OrgUser u, Organization o "
|
||||
"WHERE u.org_id = o.org_id AND "
|
||||
"WHERE o.url_prefix = ? "
|
||||
"o.url_prefix = ? "
|
||||
" ORDER BY email LIMIT ? OFFSET ?";
|
||||
rc = seaf_db_statement_foreach_row (db, sql, get_org_emailusers, &ret,
|
||||
3, "string", url_prefix,
|
||||
|
@@ -424,7 +424,7 @@ func GetReposByOwner(email string) ([]*SharedRepo, error) {
|
||||
"LEFT JOIN RepoInfo i ON o.repo_id = i.repo_id " +
|
||||
"LEFT JOIN VirtualRepo v ON o.repo_id = v.repo_id " +
|
||||
"WHERE owner_id=? AND " +
|
||||
"v.repo_Id IS NULL " +
|
||||
"v.repo_id IS NULL " +
|
||||
"ORDER BY i.update_time DESC, o.repo_id"
|
||||
|
||||
stmt, err := seafileDB.Prepare(query)
|
||||
|
Reference in New Issue
Block a user