We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e55f891 commit 44a85ffCopy full SHA for 44a85ff
server/routes/transfers.js
@@ -63,7 +63,7 @@ router.all('/perform', function(req, res) {
63
64
Promise.all(
65
[accountFrom, accountTo]
66
- .map(accountId => Account.findById(accountId))
+ .map(accountId => Account.findByPk(accountId))
67
).then(([aFrom, aTo]) => {
68
if (!aFrom || !aTo) {
69
errorAndReload(req, res, 'One or more account IDs are invalid');
0 commit comments