Feat(booking): Added backtosg field
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-09-27 04:36:41 +08:00
parent 252dfbffd6
commit 51b539fe7a
7 changed files with 42 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ func (env *Env) createBooking(
passport string,
passportExpiry time.Time,
contact string,
backToSg bool,
) (*Booking, error) {
var newBooking Booking
@@ -28,6 +29,8 @@ func (env *Env) createBooking(
newBooking.Gender = gender
newBooking.Passport = passport
newBooking.PassportExpiry = passportExpiry
newBooking.Contact = contact
newBooking.BackToSg = backToSg
newBooking.Status = "pending"