Skip to content

Commit

Permalink
feat: unassign bed on discharge (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKalho authored Oct 21, 2024
1 parent c1d65f6 commit f8c044e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ func NewDischargePatientCommandHandler(as hwes.AggregateStore) DischargePatientC
if err := a.DischargePatient(ctx); err != nil {
return 0, err
}

// If a patient is beeing discharged, the patient is also being unassigned from the bed

Check failure on line 26 in services/tasks-svc/internal/patient/commands/v1/discharge_patient.go

View workflow job for this annotation

GitHub Actions / cicd-go (tasks-svc) / lint

`beeing` is a misspelling of `being` (misspell)
if err := a.UnassignBed(ctx); err != nil {
return 0, err
}

return as.Save(ctx, a)
}
}

0 comments on commit f8c044e

Please sign in to comment.