mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-25 07:06:25 -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
|
// 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) => {
|
return new Promise(async (resolve,reject) => {
|
||||||
if (!this.uploadChannel) {
|
if (!this.uploadChannel) {
|
||||||
reject({status:503,message:"server is not ready - please try again later"})
|
reject({status:503,message:"server is not ready - please try again later"})
|
||||||
|
|
Loading…
Reference in a new issue