From aae243519da95e199e3fbf91ea19dc393ef5d5b3 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Wed, 8 Jan 2025 09:11:38 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jonathan Barrow --- src/logger.ts | 2 +- src/services/npdi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logger.ts b/src/logger.ts index 29fb1a0..57fbf8b 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -17,7 +17,7 @@ const streams = { function getCurrentTimestamp(): string { const date = new Date(); const year = date.getFullYear(); - const month = String(date.getMonth() + 1).padStart(2, '0'); // Months are 0-indexed + const month = String(date.getMonth() + 1).padStart(2, '0'); // * Months are 0-indexed const day = String(date.getDate()).padStart(2, '0'); const hours = String(date.getHours()).padStart(2, '0'); const minutes = String(date.getMinutes()).padStart(2, '0'); diff --git a/src/services/npdi.ts b/src/services/npdi.ts index eb34a0c..8f34baf 100644 --- a/src/services/npdi.ts +++ b/src/services/npdi.ts @@ -11,7 +11,7 @@ npdi.get('/p01/data/1/:titleHash/:dataID/:fileHash', (request, response) => { response.sendFile(contentPath, { headers: { - // The misspelling here is intentional, it's what the official server sets + // * The misspelling here is intentional, it's what the official server sets 'Content-Type': 'applicatoin/octet-stream', 'Content-Disposition': 'attachment', 'Content-Transfer-Encoding': 'binary',