mirror of
https://github.com/cupcakearmy/ora.git
synced 2024-12-22 08:06:28 +00:00
fiex update function
This commit is contained in:
parent
45d09a41ce
commit
c0d5242763
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user