Skip to content

Commit

Permalink
Fix start and end dates in EqBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrylkuzmin authored Oct 12, 2023
1 parent b5b95cb commit 84cd1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/repositories/equipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ func (r *equipmentRepository) BlockEquipment(
// Create a new EquipmentStatus and set startDate, endDate, Equipment and EquipmentStatusName
_, err = tx.EquipmentStatus.Create().
SetCreatedAt(time.Now()).
SetEndDate(startDate).
SetStartDate(endDate).
SetEndDate(endDate).
SetStartDate(startDate).
SetEquipments(eqToBlock).
SetEquipmentStatusName(eqStatusNotAvailable).
SetUpdatedAt(time.Now()).
Expand Down

0 comments on commit 84cd1f1

Please sign in to comment.