@restura/core 0.1.0-alpha.36 → 0.1.0-alpha.37

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
@@ -1616,10 +1616,11 @@ function insertObjectQuery(table, obj) {
1616
1616
  const params = Object.values(obj);
1617
1617
  const columns = keys.map((column) => escapeColumnName(column)).join(", ");
1618
1618
  const values = params.map((value) => SQL`${value}`).join(", ");
1619
- const query = `
1619
+ let query = `
1620
1620
  INSERT INTO "${table}" (${columns})
1621
1621
  VALUES (${values})
1622
1622
  RETURNING *`;
1623
+ query = query.replace(/'(\?)'/, "?");
1623
1624
  return query;
1624
1625
  }
1625
1626
  function updateObjectQuery(table, obj, whereStatement) {