Skip to content

Commit

Permalink
Handle not yet synced to ELiona
Browse files Browse the repository at this point in the history
  • Loading branch information
zdevaty committed Apr 5, 2024
1 parent a27b36f commit fe8db20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ func collectResources(config apiserver.Configuration) error {

if booking.ExchangeChangeKey.String != a.ExchangeChangeKey {
// Booking has changed.
if !booking.BookingID.Valid {
// Booking not yet synced to Eliona
newBookings = append(newBookings, a)
}
changedBookings = append(changedBookings, a)
booking.ExchangeChangeKey = null.StringFrom(a.ExchangeChangeKey)
err := conf.UpdateBooking(booking)
Expand Down

0 comments on commit fe8db20

Please sign in to comment.