From a178c47783c06bc1e27c1b72fc72668c536cd281 Mon Sep 17 00:00:00 2001 From: Dali Zheng Date: Sat, 13 Oct 2018 01:33:17 -0700 Subject: [PATCH] add return statement --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 83dd80c..d70aa25 100644 --- a/lib/index.js +++ b/lib/index.js @@ -503,7 +503,7 @@ module.exports = Adapter => class PostgreSQLAdapter extends Adapter { const updateRecord = `update "${typeMap[type] || type}" ${set} ` + `where "${primaryKey}" = $${index}` - client.query(updateRecord, parameters, (error, result) => { + return client.query(updateRecord, parameters, (error, result) => { if (error) { const code = getCode(error)