Skip to content

Commit

Permalink
Merge pull request #387 from dtauer/patch-1
Browse files Browse the repository at this point in the history
Fixes #277
  • Loading branch information
mike-north authored Oct 27, 2022
2 parents e55f891 + 44a85ff commit 2ce77ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/transfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ router.all('/perform', function(req, res) {

Promise.all(
[accountFrom, accountTo]
.map(accountId => Account.findById(accountId))
.map(accountId => Account.findByPk(accountId))
).then(([aFrom, aTo]) => {
if (!aFrom || !aTo) {
errorAndReload(req, res, 'One or more account IDs are invalid');
Expand Down

0 comments on commit 2ce77ca

Please sign in to comment.