fiex update function

This commit is contained in:
cupcakearmy 2020-09-20 17:43:55 +02:00
parent 45d09a41ce
commit c0d5242763
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

View File

@ -23,7 +23,8 @@
} }
async function save() { 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') dispatch('update')
close() close()
} }