Skip to content

Commit 323bed3

Browse files
author
Tim M
committed
constraint value fix for updates & deletes
1 parent 260d925 commit 323bed3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postgraphile-plugin-many-create-update-delete",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Postgraphile plugin that enables many create, update, & delete mutations in a single transaction.",
55
"main": "build/index.js",
66
"repository": {

src/PostGraphileManyDeletePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ const PostGraphileManyDeletePlugin: T.Plugin = (
328328
)}`
329329
];
330330
const sqlValues: T.SQL[][] = Array(inputData.length).fill([]);
331-
let hasConstraintValue = false;
331+
let hasConstraintValue = true;
332332

333333
inputData.forEach((dataObj, i) => {
334334
let setOfRcvdDataHasPKValue = false;

src/PostGraphileManyUpdatePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const PostGraphileManyUpdatePlugin: T.Plugin = (
298298

299299
const usedSQLColumns: T.SQL[] = [];
300300
const usedColSQLVals: T.SQL[][] = Array(inputData.length).fill([]);
301-
let hasConstraintValue = false;
301+
let hasConstraintValue = true;
302302

303303
inputData.forEach((dataObj, i) => {
304304
let setOfRcvdDataHasPKValue = false;

0 commit comments

Comments
 (0)