1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-04-28 03:20:10 +00:00

Delete RepoTokenPeerInfo when del repo (#684)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks 2024-08-22 18:08:29 +08:00 committed by GitHub
parent 95f4fb3809
commit 4f450ea8e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
go-version: "1.22"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
go-version: "1.22"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:

View File

@ -611,7 +611,9 @@ del_repo:
}
seaf_db_statement_query (mgr->seaf->db,
"DELETE FROM RepoUserToken WHERE repo_id = ?",
"DELETE t.*, i.* FROM RepoUserToken t, "
"RepoTokenPeerInfo i WHERE t.token=i.token AND "
"t.repo_id=?",
1, "string", repo_id);
seaf_db_statement_query (mgr->seaf->db,