Skip to content

Commit

Permalink
Merge pull request #332 from commitsto/develop
Browse files Browse the repository at this point in the history
fix edit route
  • Loading branch information
chrisbutler authored Oct 3, 2021
2 parents 2898855 + d88a3c6 commit a92d7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/v1/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ api.post('/edit', (req, res) => {
cred: parseCredit({ dueDate: promise.tdue, finishDate: promise.tfin }),
...data
}).then(function (prom) {
const difference = Pledge.diff(oldPromise, deSequelize(prom))
const difference = PledgeParser.diff(oldPromise, deSequelize(prom))

if (!_.isEmpty(difference)) {
log.info('promise updated', difference)
Expand Down

0 comments on commit a92d7d9

Please sign in to comment.