From e97d55c771bb61bb0f4d71841cebffdedb3af488 Mon Sep 17 00:00:00 2001 From: Vayras <89837102+Vayras@users.noreply.github.com> Date: Thu, 23 May 2024 01:47:07 +0530 Subject: [PATCH] modify --- db/features.go | 13 ------------- 1 file changed, 13 deletions(-) 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 -}