fix: remove remaining sse code
This commit is contained in:
parent
a572048057
commit
c2f91f9c33
1 changed files with 0 additions and 12 deletions
|
|
@ -152,12 +152,6 @@ func (s *ExpenseService) UpdateExpense(dto UpdateExpenseDTO) (*model.Expense, er
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
balance, _ := s.GetBalanceForSpace(dto.SpaceID)
|
|
||||||
s.eventBus.Publish(dto.SpaceID, "balance_changed", map[string]interface{}{
|
|
||||||
"balance": balance,
|
|
||||||
})
|
|
||||||
s.eventBus.Publish(dto.SpaceID, "expenses_updated", nil)
|
|
||||||
|
|
||||||
return existing, nil
|
return existing, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -166,11 +160,5 @@ func (s *ExpenseService) DeleteExpense(id string, spaceID string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
balance, _ := s.GetBalanceForSpace(spaceID)
|
|
||||||
s.eventBus.Publish(spaceID, "balance_changed", map[string]interface{}{
|
|
||||||
"balance": balance,
|
|
||||||
})
|
|
||||||
s.eventBus.Publish(spaceID, "expenses_updated", nil)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue