Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Barrow <jonbarrow1998@gmail.com>
  • Loading branch information
binaryoverload and jonbarrow authored Jan 8, 2025
1 parent 6f292b6 commit aae2435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/services/npdi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit aae2435

Please sign in to comment.