chore: formatting + cleanup
This commit is contained in:
parent
bdbd1ebf23
commit
6b26ae99b1
3 changed files with 50 additions and 43 deletions
10
src/utils/aws.js
Normal file
10
src/utils/aws.js
Normal 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('')))
|
||||
})
|
||||
},
|
||||
}
|
Reference in a new issue