Skip to content

Commit

Permalink
add return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0uch committed Oct 13, 2018
1 parent 66e2fc5 commit a178c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a178c47

Please sign in to comment.