mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
add phone
This commit is contained in:
@@ -48,6 +48,7 @@ export async function createBooking({
|
||||
destination,
|
||||
name,
|
||||
email,
|
||||
phone,
|
||||
street,
|
||||
zip,
|
||||
city,
|
||||
@@ -80,7 +81,7 @@ export async function createBooking({
|
||||
|
||||
let booker = await BookerModel.findOne({ email }).exec()
|
||||
if (!booker) {
|
||||
booker = new BookerModel({ name, email, street, zip, city })
|
||||
booker = new BookerModel({ name, email, phone, street, zip, city })
|
||||
await booker.save()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user