orchid-orm 1.13.9 → 1.14.0

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.js CHANGED
@@ -758,7 +758,7 @@ const nestedUpdate$1 = ({ query, primaryKey, foreignKey }) => {
758
758
  [foreignKey]: data[0][primaryKey]
759
759
  }))
760
760
  );
761
- delete t.q[pqb.toSqlCacheKey];
761
+ delete t.q[pqb.toSQLCacheKey];
762
762
  }
763
763
  if (params.disconnect || params.set) {
764
764
  await t.where(
@@ -770,7 +770,7 @@ const nestedUpdate$1 = ({ query, primaryKey, foreignKey }) => {
770
770
  )
771
771
  )._update({ [foreignKey]: null });
772
772
  if (params.set) {
773
- delete t.q[pqb.toSqlCacheKey];
773
+ delete t.q[pqb.toSQLCacheKey];
774
774
  await t.where(
775
775
  Array.isArray(params.set) ? {
776
776
  OR: params.set
@@ -779,7 +779,7 @@ const nestedUpdate$1 = ({ query, primaryKey, foreignKey }) => {
779
779
  }
780
780
  }
781
781
  if (params.delete || params.update) {
782
- delete t.q[pqb.toSqlCacheKey];
782
+ delete t.q[pqb.toSQLCacheKey];
783
783
  const q = t._where(
784
784
  getWhereForNestedUpdate(
785
785
  data,
@@ -1125,7 +1125,7 @@ const nestedUpdate = (state) => {
1125
1125
  if (params.set) {
1126
1126
  const j = queryJoinTable(state, data);
1127
1127
  await j._delete();
1128
- delete j.q[pqb.toSqlCacheKey];
1128
+ delete j.q[pqb.toSQLCacheKey];
1129
1129
  const ids = await queryRelatedTable(
1130
1130
  state.relatedTableQuery,
1131
1131
  params.set