mirror of
https://github.com/cupcakearmy/ora.git
synced 2025-09-06 00:00:41 +00:00
fiex update function
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user