fix #29
This commit is contained in:
@@ -119,7 +119,7 @@ const userController = {
|
|||||||
await event.update(body)
|
await event.update(body)
|
||||||
let place
|
let place
|
||||||
try {
|
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 } })
|
defaults: { address: body.place_address } })
|
||||||
.spread((place, created) => place)
|
.spread((place, created) => place)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user