Update dependencies

This commit is contained in:
Jonathan Cremin 2019-06-08 07:52:57 -07:00
parent 1158db6d7e
commit 5a7e695e53
10 changed files with 864 additions and 870 deletions

View file

@ -14,7 +14,7 @@ async function checkId(Files, fileId, attempts) {
if (attempts > 10) {
return false;
}
const file = await models.file.findById(fileId);
const file = await models.file.findByPk(fileId);
if (file === null) {
return fileId;
}