Update files.ts

This commit is contained in:
May 2023-01-26 16:42:10 -08:00 committed by GitHub
parent fbdc5f0edd
commit dc0e63e635
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"})