fix reference error

This commit is contained in:
Dobromir Popov
2024-09-17 00:19:18 +03:00
parent de3533639c
commit e0e000e8e6

View File

@ -12,7 +12,7 @@ import fs from 'fs';
import path from 'path'; import path from 'path';
import { all } from "axios"; import { all } from "axios";
import { logger } from "src/helpers/common"; import { logger } from "src/helpers/common";
import { excel } from "src/helpers/excel"; import { ExportPublishersToExcel } from "src/helpers/excel";
/** /**
* *
@ -435,7 +435,7 @@ export default async function handler(req, res) {
res.status(200).json(await dataHelper.getAllPublishersWithStatisticsMonth(day, noEndDate)); res.status(200).json(await dataHelper.getAllPublishersWithStatisticsMonth(day, noEndDate));
case "exportPublishersExcel": case "exportPublishersExcel":
try { try {
await excel.ExportPublishersToExcel(req, res); await ExportPublishersToExcel(req, res);
} catch (error) { } catch (error) {
console.error(JSON.stringify(error)); console.error(JSON.stringify(error));
} }