@guren/orm 2.16.0 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2650,6 +2650,7 @@ var Model = class Model {
2650
2650
  const lifecycle = modelLifecycle(this.name, "update", this.hooks, this.observers);
2651
2651
  await lifecycle.before(payload);
2652
2652
  const result = await this.newQuery(writeOptions).where(where)[PREPARED_UPDATE](payload);
2653
+ if (result == null) return result;
2653
2654
  await lifecycle.after(result);
2654
2655
  return this.applyReadTransforms(result);
2655
2656
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guren/orm",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "Eloquent-style models for the Guren framework, on Drizzle ORM: PostgreSQL, MySQL, SQLite and Cloudflare D1.",
5
5
  "keywords": [
6
6
  "guren",