Skip to content

Commit b499ff0

Browse files
committed
Add async/await to Excel generation for proper Promise handling
1 parent 682aaa3 commit b499ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/html-to-excel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function htmlToExcelHandler(c) {
1313
const { html, filename = 'document.xlsx', sheetName = 'Sheet1', store = false } = c.get('body');
1414

1515
// Generate Excel spreadsheet from HTML tables
16-
const excelBuffer = excelService.generateExcel(html, sheetName);
16+
const excelBuffer = await excelService.generateExcel(html, sheetName);
1717

1818
// Store the Excel file in Supabase if requested
1919
if (store) {

0 commit comments

Comments
 (0)