Skip to content

Commit

Permalink
Merge pull request stakwork#1635 from stakwork/fix/payments
Browse files Browse the repository at this point in the history
rename org
  • Loading branch information
elraphty authored May 7, 2024
2 parents acae85b + ee9f22f commit 4f33ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ func (db database) AddAndUpdateBudget(invoice NewInvoiceList) NewPaymentHistory

if WorkspaceBudget.WorkspaceUuid == "" {
now := time.Now()
orgBudget := NewBountyBudget{
workBudget := NewBountyBudget{
WorkspaceUuid: workspace_uuid,
TotalBudget: paymentHistory.Amount,
Created: &now,
Updated: &now,
}
db.CreateWorkspaceBudget(orgBudget)
db.CreateWorkspaceBudget(workBudget)
} else {
totalBudget := WorkspaceBudget.TotalBudget
WorkspaceBudget.TotalBudget = totalBudget + paymentHistory.Amount
Expand Down

0 comments on commit 4f33ba9

Please sign in to comment.