Fix(booking-job): Goroutine worker function
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-09-27 21:01:44 +08:00
parent 147d6f9177
commit 6d483b6fbd

View File

@@ -84,7 +84,7 @@ func (env *Env) BackgroundJobRunner() {
creditCardCVV := jobToDo.User.Profile.KtmTrainCreditCardCVV
creditCardExpiry := jobToDo.User.Profile.KtmTrainCreditCardExpiry
func() {
go func() {
defer func() {
if r := recover(); r != nil {
log.Println("Recovering from job panic...")