allow tags removal

This commit is contained in:
lesion 2022-09-14 14:51:29 +02:00
parent 00a5819e46
commit 78b2a3e673
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -570,8 +570,8 @@ const eventController = {
let tags = []
if (body.tags) {
tags = await tagController._findOrCreate(body.tags)
await event.setTags(tags)
}
await event.setTags(tags)
let newEvent = await Event.findByPk(event.id, { include: [Tag, Place] })
newEvent = newEvent.get()