@nest-omni/core 4.1.2 → 4.1.3-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.
@@ -171,10 +171,10 @@ const insertWithPk = function (entity) {
171
171
  if (columnName) {
172
172
  columnNames.push(columnName);
173
173
  columnValues.push(value);
174
- valuePlaceholders.push(`$${columnValues.length}`);
174
+ valuePlaceholders.push(`?`);
175
175
  }
176
176
  }
177
- const sql = `INSERT INTO ${tableName} (${columnNames.join(', ')}) VALUES (${valuePlaceholders.join(', ')}) RETURNING *`;
177
+ const sql = `INSERT INTO ${tableName} (${columnNames.join(', ')}) VALUES (${valuePlaceholders.join(', ')})`;
178
178
  try {
179
179
  const result = yield this.query(sql, columnValues);
180
180
  return result[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-omni/core",
3
- "version": "4.1.2",
3
+ "version": "4.1.3-1",
4
4
  "description": "A comprehensive NestJS framework for building enterprise-grade applications with best practices",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",