diff --git a/backend/internal/ktmtrainbot/backgroundbookingjob.go b/backend/internal/ktmtrainbot/backgroundbookingjob.go index 2c7d6f8..68bb9db 100644 --- a/backend/internal/ktmtrainbot/backgroundbookingjob.go +++ b/backend/internal/ktmtrainbot/backgroundbookingjob.go @@ -413,7 +413,7 @@ func getBookingSlots(browser *rod.Browser, onwardDate string, reverse bool) *rod } func selectBookingSlot(ctx context.Context, page *rod.Page, timeCode string) *rod.Page { - time.Sleep(1 * time.Second) + time.Sleep(5 * time.Second) // Initial closing of maintenance modal bodyText := page.MustElement("body").MustText() if strings.Contains(bodyText, "System maintenance scheduled at 23:00 to 00:15 (UTC+8)") {