mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-28 11:30:57 +00:00
Delete RepoTokenPeerInfo when del repo (#684)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
parent
95f4fb3809
commit
4f450ea8e0
4
.github/workflows/golangci-lint.yml
vendored
4
.github/workflows/golangci-lint.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: "1.22"
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
@ -28,7 +28,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: "1.22"
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
|
@ -611,7 +611,9 @@ del_repo:
|
|||||||
}
|
}
|
||||||
|
|
||||||
seaf_db_statement_query (mgr->seaf->db,
|
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);
|
1, "string", repo_id);
|
||||||
|
|
||||||
seaf_db_statement_query (mgr->seaf->db,
|
seaf_db_statement_query (mgr->seaf->db,
|
||||||
|
Loading…
Reference in New Issue
Block a user