From 1cdc900c5526f99110a842a7dab95e1f07c91dab Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 22 Jan 2019 22:26:54 +0200 Subject: [PATCH] typescript(translucid): Fixed: 'UnhandledPromiseRejectionWar typescript(translucid): ning: ReferenceError: sendfiles is not defined' Signed-off-by: prescientmoon --- typescript/translucid/Translucid.js | 2 +- typescript/translucid/Translucid.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index c58be4a..25d4b35 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -53,7 +53,7 @@ class Translucid { else res.sendFile(prev); }); - decorated[0](sendfiles ? readResults : `${__dirname}/../../${filepath}`); + decorated[0](sendFiles ? readResults : `${__dirname}/../../${filepath}`); }); } } diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 2221a41..211f729 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -61,7 +61,7 @@ class Translucid { res.sendFile(prev); }); - decorated[0](sendfiles?readResults:`${__dirname}/../../${filepath}`); + decorated[0](sendFiles?readResults:`${__dirname}/../../${filepath}`); }); } }