mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
Small clean-up (#1827)
* chore: avoid shadow variable name * chore: map could just be foreach * clean uneeded template literal * lint
This commit is contained in:
committed by
GitHub
parent
9b36f36f73
commit
45e7373279
@@ -355,7 +355,7 @@ export function migrateRundown(
|
||||
const newCustom: EntryCustomFields = {};
|
||||
|
||||
if (translationTable) {
|
||||
Object.entries(custom).map(([key, value]) => {
|
||||
Object.entries(custom).forEach(([key, value]) => {
|
||||
const newKey = translationTable.get(key);
|
||||
if (newKey) {
|
||||
newCustom[newKey] = value;
|
||||
|
||||
@@ -52,7 +52,7 @@ router.get('/:rundownId/export', validateRundownExport, (req: Request, res: Resp
|
||||
const customFields = getProjectCustomFields();
|
||||
const buffer = generateExcelFile(rundown, customFields);
|
||||
|
||||
res.setHeader('Content-Disposition', `attachment;`);
|
||||
res.setHeader('Content-Disposition', 'attachment;');
|
||||
res.setHeader('Content-Type', EXCEL_MIME);
|
||||
res.setHeader('Content-Length', buffer.length.toString());
|
||||
res.status(200).send(buffer);
|
||||
|
||||
Reference in New Issue
Block a user