add phone

This commit is contained in:
Thomas Ruoff
2020-11-08 23:04:14 +01:00
parent 242a636379
commit 650a7374ff
4 changed files with 14 additions and 2 deletions

View File

@@ -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()
}