joist-core 2.5.0-next.25 → 2.5.0-next.27
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.
- package/build/EntityManager.cjs +1 -1
- package/build/EntityManager.cjs.map +1 -1
- package/build/EntityManager.d.cts +8 -1
- package/build/EntityManager.d.cts.map +1 -1
- package/build/EntityManager.d.mts +8 -1
- package/build/EntityManager.d.mts.map +1 -1
- package/build/EntityManager.js +1 -1
- package/build/EntityManager.js.map +1 -1
- package/package.json +2 -2
package/build/EntityManager.cjs
CHANGED
|
@@ -540,7 +540,7 @@ var EntityManager = class EntityManager {
|
|
|
540
540
|
async findOrCreate(type, where, ifNew, upsert, options) {
|
|
541
541
|
const { softDeletes = "exclude", populate } = options ?? {};
|
|
542
542
|
const entity = await require_dataloaders_findOrCreateDataLoader.findOrCreateDataLoader(this, type, where, softDeletes).load({
|
|
543
|
-
ifNew,
|
|
543
|
+
ifNew: ifNew ?? {},
|
|
544
544
|
upsert
|
|
545
545
|
}).catch(function findOrCreate(err) {
|
|
546
546
|
throw appendStack(err, /* @__PURE__ */ new Error());
|