rads-db 3.2.4 → 3.2.5

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/dist/index.cjs CHANGED
@@ -644,6 +644,8 @@ function verifyRelationsSetup(schema, effects) {
644
644
  const id_in = ___default.keys(changedDocsById);
645
645
  if (!id_in.length)
646
646
  return;
647
+ if (!drivers[entityName])
648
+ return;
647
649
  const affectedDocs = await drivers[entityName].getAll(
648
650
  {
649
651
  where: { [fName]: { id_in } },
package/dist/index.mjs CHANGED
@@ -637,6 +637,8 @@ function verifyRelationsSetup(schema, effects) {
637
637
  const id_in = _.keys(changedDocsById);
638
638
  if (!id_in.length)
639
639
  return;
640
+ if (!drivers[entityName])
641
+ return;
640
642
  const affectedDocs = await drivers[entityName].getAll(
641
643
  {
642
644
  where: { [fName]: { id_in } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rads-db",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Say goodbye to boilerplate code and hello to efficient and elegant syntax.",
5
5
  "author": "",
6
6
  "license": "ISC",