pqb 0.18.1 → 0.18.2

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
@@ -1560,7 +1560,9 @@ class JSONColumn extends ColumnType {
1560
1560
  }
1561
1561
  toCode(t) {
1562
1562
  const { schema } = this.data;
1563
- return columnCode(this, t, `json((t) => ${schema.toCode("t")})`);
1563
+ const schemaCode = orchidCore.toArray(schema.toCode(t));
1564
+ orchidCore.addCode(schemaCode, ",");
1565
+ return columnCode(this, t, [`json((${t}) =>`, schemaCode, ")"]);
1564
1566
  }
1565
1567
  }
1566
1568
  class JSONTextColumn extends ColumnType {