diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 25d4b35..a725411 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 211f729..667d9c9 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}`); }); } }