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.
@@ -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());