Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 13, 2023
1 parent 1b24fdf commit 870ace8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/discord/getDownloadLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from "axios";


let LINK_CACHE: any = {};
const CACHE_TIME: number = process.env.CACHE_TIME as any || 3600;
const CACHE_TIME: number = process.env.CACHE_TIME as any || 800;
function getLinkHash(channel_id: string, message_id: string, file_name: string): string {
return `${channel_id}${message_id}${file_name}`;
}
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app.get('/:url(*)', async (req, res) => {
if (fullLink) {
res.redirect(fullLink);
} else {
res.status(404).send('Failed to get the download link.');
res.status(502).send('Failed to get the download link.');
}
});

Expand Down

0 comments on commit 870ace8

Please sign in to comment.