Skip to content

Commit

Permalink
fix edit route
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbutler committed Oct 2, 2021
1 parent 17a2597 commit d88a3c6
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 d88a3c6

Please sign in to comment.