Skip to content

Commit

Permalink
Delete RepoTokenPeerInfo when del repo
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Aug 19, 2024
1 parent 7387164 commit 2c73575
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 2c73575

Please sign in to comment.