Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
Vayras committed May 22, 2024
1 parent 8651141 commit e97d55c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions db/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

0 comments on commit e97d55c

Please sign in to comment.