chore: formatting + cleanup

This commit is contained in:
Cory Dransfeldt 2023-07-19 19:54:29 -07:00
parent bdbd1ebf23
commit 6b26ae99b1
No known key found for this signature in database
3 changed files with 50 additions and 43 deletions

10
src/utils/aws.js Normal file
View file

@ -0,0 +1,10 @@
module.exports = {
getReadableData: (readable) => {
return new Promise((resolve, reject) => {
const chunks = []
readable.once('error', (err) => reject(err))
readable.on('data', (chunk) => chunks.push(chunk))
readable.once('end', () => resolve(chunks.join('')))
})
},
}