diff --git a/src/dashboard/components/RulesEditor.svelte b/src/dashboard/components/RulesEditor.svelte index 0f2aa3a..e3f471d 100644 --- a/src/dashboard/components/RulesEditor.svelte +++ b/src/dashboard/components/RulesEditor.svelte @@ -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() }