fiex update function

This commit is contained in:
2020-09-20 17:43:55 +02:00
parent 45d09a41ce
commit c0d5242763

View File

@@ -23,7 +23,8 @@
}
async function save() {
await Limits.update({ host: limit.host }, limit, { upsert: true })
const { _id, ...rest } = limit
await Limits.update({ _id }, rest, { upsert: true })
dispatch('update')
close()
}