fix #29
This commit is contained in:
parent
30ede9673c
commit
c4d94023bd
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue