@minatojs/core
Advanced tools
Comparing version 2.8.0 to 2.8.1
{ | ||
"name": "@minatojs/core", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "Type Driven Database Framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.cjs", |
@@ -157,3 +157,5 @@ import { Awaitable, Dict, Intersect, makeArray, MaybeArray, valueMap } from 'cosmokit' | ||
} | ||
return await sel._action('set', sel.model.format(update)).execute() | ||
update = sel.model.format(update) | ||
if (Object.keys(update).length === 0) return {} | ||
return await sel._action('set', update).execute() | ||
} | ||
@@ -160,0 +162,0 @@ |
@@ -163,2 +163,3 @@ import { clone, isNullable, makeArray, MaybeArray } from 'cosmokit' | ||
key = prefix + key | ||
if (value === undefined) return | ||
if (fields.includes(key)) { | ||
@@ -165,0 +166,0 @@ result[key] = this.resolveValue(key, value) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
175327
3214