Skip to content

Commit

Permalink
fix(events): wront check booking start tiket
Browse files Browse the repository at this point in the history
  • Loading branch information
AfandyW committed Oct 19, 2024
1 parent 57e9367 commit 0851ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/events/usecase/create_register_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (uc usecase) CreateRegisterEvent(ctx context.Context, payload domain.Regist

tNow := time.Now()

if event.BookingStart.Valid {
if !event.BookingStart.Valid {
return domain.RegisterEventResponse{}, errors.New("event is not start to booking")
}

Expand Down

0 comments on commit 0851ae0

Please sign in to comment.