@dudousxd/nestjs-durable-store-mikro-orm 0.35.0 → 0.35.1

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
@@ -2866,13 +2866,16 @@ var MikroOrmRoundTrips = class MikroOrmRoundTrips2 {
2866
2866
  table(em, entity) {
2867
2867
  return this.q(em, this.meta(em, entity).tableName);
2868
2868
  }
2869
- /** `value` as MikroORM binds it for `property` (its custom type's conversion, if any). */
2869
+ /**
2870
+ * `value` as a raw-SQL parameter for `property` (its custom type's conversion, if any).
2871
+ *
2872
+ * No `mode: 'query'`: in that mode MySQL's JSON conversion returns the value unserialized, for the
2873
+ * query builder to handle, and a raw parameter that is an array is then expanded into a value list.
2874
+ */
2870
2875
  bind(em, entity, property, value) {
2871
2876
  if (value == null) return null;
2872
2877
  const type = this.meta(em, entity).properties[property]?.customType;
2873
- return type ? type.convertToDatabaseValue(value, em.getPlatform(), {
2874
- mode: "query"
2875
- }) : value;
2878
+ return type ? type.convertToDatabaseValue(value, em.getPlatform()) : value;
2876
2879
  }
2877
2880
  async run(em, sql, params, method = "all") {
2878
2881
  const connection = em.getConnection();