mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-04 01:11:27 +03:00
fix: add .zip
extension to export file name
This commit is contained in:
@@ -115,7 +115,7 @@ module.exports.get = fastify => ({
|
||||
archive.finalize(); // ! do not await
|
||||
|
||||
const cleanGuildName = guild.name.replace(/\W/g, '_').replace(/_+/g, '_');
|
||||
const fileName = `tickets-${cleanGuildName}-${new Date().toISOString().slice(0, 10)}`;
|
||||
const fileName = `tickets-${cleanGuildName}-${new Date().toISOString().slice(0, 10)}.zip`;
|
||||
|
||||
res
|
||||
.type('application/zip')
|
||||
|
Reference in New Issue
Block a user