This commit is contained in:
lesion 2019-03-19 23:41:49 +01:00
parent 30ede9673c
commit c4d94023bd

View file

@ -119,7 +119,7 @@ const userController = {
await event.update(body)
let place
try {
place = await Place.findOrCreate({ where: { name: { [Op.eq]: body.place_name } },
place = await Place.findOrCreate({ where: { name: body.place_name },
defaults: { address: body.place_address } })
.spread((place, created) => place)
} catch (e) {