Skip to content

Commit

Permalink
Fixed error to append sheets that have names greater than 31 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
Gutts-n committed Jan 16, 2024
1 parent 3367123 commit afe9770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ router.post(`/${APP_VERSION}/download`, async function (req, res, next) {
const ws = xlsxHeader
? XLSX.utils.json_to_sheet(gqlRes[k], { header: xlsxHeader })
: XLSX.utils.json_to_sheet(gqlRes[k])
XLSX.utils.book_append_sheet(wb, ws, k)
XLSX.utils.book_append_sheet(wb, ws, k.slice(0, 31))
})
if (ext === 'tsv' || (ext === 'csv' && colSep != ',')) {
res.set('Content-Type', 'text/csv')
Expand Down

0 comments on commit afe9770

Please sign in to comment.