Skip to content

Commit

Permalink
Merge pull request #33 from datopian/fix/name-greater-than-31-chars-e…
Browse files Browse the repository at this point in the history
…rror

Fixed appending sheets that have names greater than 31 characters error
  • Loading branch information
anuveyatsu authored Jan 17, 2024
2 parents 3367123 + afe9770 commit a022423
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 a022423

Please sign in to comment.