alert service
This commit is contained in:
parent
0e73841b3e
commit
608561ab38
8 changed files with 283 additions and 8 deletions
|
|
@ -55,3 +55,12 @@ func (uc *Usecase) UpdateAlertPrice(ctx context.Context, alertID entities.AlertI
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (uc *Usecase) DisableAlert(ctx context.Context, alertID entities.AlertID) error {
|
||||
if err := uc.storage.DisableAlert(ctx, alertID); err != nil {
|
||||
uc.log.Error("failed to disable alert", "alert_id", alertID, "err", err)
|
||||
return fmt.Errorf("failed to disable alert: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue