1
Fork 0

typescript(translucid): Fixed: 'UnhandledPromiseRejectionWar

typescript(translucid): ning: ReferenceError: sendfiles is not defined'

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-22 22:26:54 +02:00 committed by prescientmoon
parent ccc239c393
commit 1cdc900c55
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ class Translucid {
else
res.sendFile(prev);
});
decorated[0](sendfiles ? readResults : `${__dirname}/../../${filepath}`);
decorated[0](sendFiles ? readResults : `${__dirname}/../../${filepath}`);
});
}
}

View file

@ -61,7 +61,7 @@ class Translucid {
res.sendFile(prev);
});
decorated[0](sendfiles?readResults:`${__dirname}/../../${filepath}`);
decorated[0](sendFiles?readResults:`${__dirname}/../../${filepath}`);
});
}
}