Update dependencies
This commit is contained in:
parent
1158db6d7e
commit
5a7e695e53
10 changed files with 864 additions and 870 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue