Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Fix an optional attribute for transaction insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Jan 9, 2018
1 parent bf8def5 commit 2ad2c5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function TransactionsRepo (db, pgp) {
columnSet = {};
var table = new pgp.helpers.TableName({table: this.dbTable, schema: 'public'});
columnSet.insert = new pgp.helpers.ColumnSet(this.dbFields, table);
columnSet.insert = columnSet.insert.merge([{ name: 'recipientId', def: null }]);
}

this.cs = columnSet;
Expand Down

0 comments on commit 2ad2c5f

Please sign in to comment.