sql-typechecker 0.0.69 → 0.0.70
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/out/cli.js +1 -1
- package/out/cli.js.map +1 -1
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -243704,7 +243704,7 @@ ${f.name?.name}?: ${showTypeAsTypescriptType(f.type)}`).join(",");
|
|
|
243704
243704
|
const update = `
|
|
243705
243705
|
export async function update(pool: Pool, pk: {${primaryKeySingleCol.name.name}: ${showTypeAsTypescriptType(primaryKeySingleCol.type)}}, row: {${inputRowForUpdate}}): Promise<null>{
|
|
243706
243706
|
|
|
243707
|
-
const providedFields = Object.keys(row) as (keyof typeof row)[] ;
|
|
243707
|
+
const providedFields = (Object.keys(row) as (keyof typeof row)[]).filter(key => row[key] !== undefined) ;
|
|
243708
243708
|
if (providedFields.length === 0){ return null; }
|
|
243709
243709
|
|
|
243710
243710
|
await pool.query({
|