Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then((uploadedFile: any) => {
const query = new Query();
query.equalTo("_id", uploadedFile._id);
return Files.find(query);
})
.then((files: Array) => {