Refactor uploader
This commit is contained in:
parent
a1a39778aa
commit
6ec5f456f3
12 changed files with 647 additions and 261 deletions
|
@ -12,7 +12,7 @@ function* checkId(Files, fileId, attempts) {
|
|||
if (attempts > 10) {
|
||||
return false;
|
||||
}
|
||||
const file = yield Files.findOne({'_id': fileId});
|
||||
const file = yield Files.findOne({ _id: fileId });
|
||||
if (file === null) {
|
||||
return fileId;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue