Skip to content

Commit

Permalink
feat: Add RemoveDeal method
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Dec 4, 2024
1 parent 9cd63b4 commit 9595e94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/solver/store/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,5 +494,10 @@ func (store *SolverStoreDatabase) RemoveResourceOffer(id string) error {
}

func (store *SolverStoreDatabase) RemoveDeal(id string) error {
var record Deal
result := store.db.Where("c_id = ?", id).Delete(&record)
if result.Error != nil {
return result.Error
}
return nil
}

0 comments on commit 9595e94

Please sign in to comment.