fix: Update validation

This commit is contained in:
Tom Hu
2021-07-22 11:47:55 -07:00
parent 6ab08a75e2
commit 53f686aaf8
3 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ const verify = async (filename: string) => {
// Verify uploader
const uploaderSha = crypto.createHash(`sha256`);
const stream = fs.createReadStream(filename);
await stream
return await stream
.on('data', (data) => {
uploaderSha.update(data);
}).on('end', async () => {