Skip to content

Commit

Permalink
Delete RepoTokenPeerInfo when del repo (#684)
Browse files Browse the repository at this point in the history
Co-authored-by: 杨赫然 <[email protected]>
  • Loading branch information
feiniks and 杨赫然 authored Aug 22, 2024
1 parent 95f4fb3 commit 4f450ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion server/repo-mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ seaf_repo_manager_del_repo (SeafRepoManager *mgr,
}

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,
Expand Down

0 comments on commit 4f450ea

Please sign in to comment.