mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
Update files.ts
This commit is contained in:
parent
fbdc5f0edd
commit
dc0e63e635
|
@ -179,7 +179,7 @@ export default class Files {
|
|||
|
||||
// todo: move read code here
|
||||
|
||||
readFile(uploadId: string):Promise<{dataStream:Readable,contentType:string}> {
|
||||
readFileStream(uploadId: string):Promise<{dataStream:Readable,contentType:string}> {
|
||||
return new Promise(async (resolve,reject) => {
|
||||
if (!this.uploadChannel) {
|
||||
reject({status:503,message:"server is not ready - please try again later"})
|
||||
|
|
Loading…
Reference in a new issue