From 4bf3f67f0ccbcb1924824cdabcb8a24a1e81fd24 Mon Sep 17 00:00:00 2001 From: Brian Ginsburg <gins@brianginsburg.com> Date: Tue, 3 Dec 2024 20:46:13 -0800 Subject: [PATCH] feat: Add RemoveResourceOffer method --- pkg/solver/store/db/db.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/solver/store/db/db.go b/pkg/solver/store/db/db.go index bb81462a..b7f27649 100644 --- a/pkg/solver/store/db/db.go +++ b/pkg/solver/store/db/db.go @@ -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 }