Skip to content

Commit 2ce77ca

Browse files
authored
Merge pull request #387 from dtauer/patch-1
Fixes #277
2 parents e55f891 + 44a85ff commit 2ce77ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/routes/transfers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ router.all('/perform', function(req, res) {
6363

6464
Promise.all(
6565
[accountFrom, accountTo]
66-
.map(accountId => Account.findById(accountId))
66+
.map(accountId => Account.findByPk(accountId))
6767
).then(([aFrom, aTo]) => {
6868
if (!aFrom || !aTo) {
6969
errorAndReload(req, res, 'One or more account IDs are invalid');

0 commit comments

Comments
 (0)