@onivoro/server-typeorm-postgres 22.0.1 → 22.0.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.
@@ -108,7 +108,7 @@ let RedshiftRepository = class RedshiftRepository extends type_orm_repository_cl
108
108
  mapPlaceholderExpression(length, index, column) {
109
109
  const exp = `$${length + index + 1}`;
110
110
  const meta = this.columns[column];
111
- return meta.type === 'jsonb' ? `JSON_PARSE('${exp}')` : exp;
111
+ return meta.type === 'jsonb' ? `JSON_PARSE(${exp})` : exp;
112
112
  }
113
113
  async postOneWithoutReturn(entity) {
114
114
  // PERFORM AN INSERT BUT NOT THE RETRIEVAL QUERY FOR PERFORMANCE
@@ -108,7 +108,7 @@ let RedshiftRepository = class RedshiftRepository extends type_orm_repository_cl
108
108
  mapPlaceholderExpression(length, index, column) {
109
109
  const exp = `$${length + index + 1}`;
110
110
  const meta = this.columns[column];
111
- return meta.type === 'jsonb' ? `JSON_PARSE('${exp}')` : exp;
111
+ return meta.type === 'jsonb' ? `JSON_PARSE(${exp})` : exp;
112
112
  }
113
113
  async postOneWithoutReturn(entity) {
114
114
  // PERFORM AN INSERT BUT NOT THE RETRIEVAL QUERY FOR PERFORMANCE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/server-typeorm-postgres",
3
- "version": "22.0.1",
3
+ "version": "22.0.2",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/onivoro/server-typeorm-postgres.git"
6
6
  },