Skip to content

Commit 44a85ff

Browse files
authored
Fixes #277
Sequelize version was bumped along the way and now findByID is deprecated. The findByPk method works.
1 parent e55f891 commit 44a85ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/routes/transfers.js

+1-1
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)