Skip to content

Commit

Permalink
on event import keep ordering if set
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed May 21, 2024
1 parent c46a960 commit 3df4878
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/event_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ func ImportEvent(event model.Event, styleName string, PartNumber int) (*model.Ev
Number: PartNumber,
}

event.Ordering = event.Number
if event.Ordering == 0 {
event.Ordering = event.Number
}

newEvent, err3 := AddEvent(event)
if err3 != nil {
Expand Down

0 comments on commit 3df4878

Please sign in to comment.