@strapi/database 4.25.20 → 4.25.22

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.mjs CHANGED
@@ -6064,7 +6064,7 @@ const createConnection = (config) => {
6064
6064
  };
6065
6065
  const debug = createDebug("strapi::database");
6066
6066
  const isMorphRelationWithPivot = (attribute, pivot) => {
6067
- return attribute.type === "relation" && "relation" in attribute && "joinTable" in attribute && "target" in attribute && "name" in attribute.joinTable && "pivotColumns" in attribute.joinTable && attribute.joinTable.pivotColumns.includes(pivot);
6067
+ return attribute.type === "relation" && "relation" in attribute && "joinTable" in attribute && "name" in attribute.joinTable && "pivotColumns" in attribute.joinTable && attribute.joinTable.pivotColumns.includes(pivot);
6068
6068
  };
6069
6069
  const filterMorphRelationalAttributes = (attributes, pivot) => {
6070
6070
  return Object.values(attributes).filter(