Skip to content

Commit

Permalink
feat: Add RemoveResourceOffer method
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Dec 4, 2024
1 parent 164e8ac commit 4bf3f67
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 @@ -312,5 +312,10 @@ func (store *SolverStoreDatabase) RemoveJobOffer(id string) error {
}

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

0 comments on commit 4bf3f67

Please sign in to comment.