Skip to content

Commit

Permalink
Don't destructure default import for exceljs
Browse files Browse the repository at this point in the history
This seems to not work anymore for an unknown reason…
  • Loading branch information
farnoux committed Jan 20, 2025
1 parent e74d4bb commit 49517a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions supabase/functions/export_plan_action/exportXLSX.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Export d'un plan d'action au format Excel
*/
import { Workbook, Worksheet } from 'https://esm.sh/[email protected]';
import Excel from 'https://esm.sh/[email protected]';
import { formatDate, setEuroValue } from '../_shared/exportUtils.ts';
import { TSupabaseClient } from '../_shared/getSupabaseClient.ts';
import { ConfigPlanAction } from './config.ts';
Expand All @@ -26,7 +26,7 @@ export const exportXLSX = async (
const titre = ligne1.axe_nom;

// ouvre le classeur et sélectionne la première feuille de calcul
const workbook = new Workbook();
const workbook = new Excel.Workbook();
await workbook.xlsx.load(template);
const worksheet = workbook.worksheets[0];

Expand All @@ -50,7 +50,7 @@ export const exportXLSX = async (

const exportPlan = (
// feuille de calcul dans laquelle écrire
worksheet: Worksheet,
worksheet: Excel.Worksheet,
// données de l'export
data: TExportData
) => {
Expand Down

0 comments on commit 49517a9

Please sign in to comment.