diff --git a/db/features.go b/db/features.go index ddd5c21dc..038d645c8 100644 --- a/db/features.go +++ b/db/features.go @@ -8,7 +8,6 @@ import ( "time" "github.com/stakwork/sphinx-tribes/utils" - "gorm.io/gorm" ) func (db database) GetFeaturesByWorkspaceUuid(uuid string, r *http.Request) []WorkspaceFeatures { @@ -183,15 +182,3 @@ func (db database) DeleteFeatureStoryByUuid(featureUuid, storyUuid string) error } return nil } - -func (db *database) GetFeaturePhaseBounty(featureUUID string, phaseUUID string) (*Bounty, error) { - var bounty Bounty - result := db.db.Where("feature_uuid = ? AND phase_uuid = ?", featureUUID, phaseUUID).First(&bounty) - if result.Error != nil { - if errors.Is(result.Error, gorm.ErrRecordNotFound) { - return nil, nil - } - return nil, result.Error - } - return &bounty, nil -}