diff --git a/db/workspaces.go b/db/workspaces.go index 224b344ea..2349f4b4b 100644 --- a/db/workspaces.go +++ b/db/workspaces.go @@ -138,7 +138,7 @@ func (db database) CreateWorkspaceBudget(budget NewBountyBudget) NewBountyBudget } func (db database) UpdateWorkspaceBudget(budget NewBountyBudget) NewBountyBudget { - db.db.Model(&NewBountyBudget{}).Where("workspace_uuid = ?", budget.OrgUuid).Updates(map[string]interface{}{ + db.db.Model(&NewBountyBudget{}).Where("workspace_uuid = ?", budget.WorkspaceUuid).Updates(map[string]interface{}{ "total_budget": budget.TotalBudget, }) return budget