Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const copyCompletionStatuses = this.dispositions.map(async (disposition) => {
// use this private/undocument .blob property to duplicate the file
const fileCopy = await File.fromBlob(file.blob);
this.queuesByDisposition[disposition.id].push(fileCopy);
return true;
});
const resolvedStatuses = await Promise.all(copyCompletionStatuses);