Skip to content

Commit

Permalink
Merge pull request stakwork#1636 from stakwork/feat/deduct_payment
Browse files Browse the repository at this point in the history
fixed deduct payment
  • Loading branch information
elraphty authored May 9, 2024
2 parents 4f33ba9 + 96fb0f9 commit 39b6548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (db database) AddPaymentHistory(payment NewPaymentHistory) NewPaymentHistor
db.db.Create(&payment)

// get Workspace budget and subtract payment from total budget
WorkspaceBudget := db.GetWorkspaceBudget(payment.OrgUuid)
WorkspaceBudget := db.GetWorkspaceBudget(payment.WorkspaceUuid)
totalBudget := WorkspaceBudget.TotalBudget

// deduct amount if it's a bounty payment
Expand Down

0 comments on commit 39b6548

Please sign in to comment.