Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions controllers/conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,13 @@
const worksheet = workbook.addWorksheet('Chats');
const MIN_ROW_HEIGHT = 16;
const POINTS_PER_LINE = 14;
const minHeightForWrappedText = (text: string, colWidthChars: number) =>

Check failure on line 427 in controllers/conversion.ts

View workflow job for this annotation

GitHub Actions / lint / check

Missing return type on function
Math.max(MIN_ROW_HEIGHT, (Math.ceil(((text ?? '').length || 1) / colWidthChars) || 1) * POINTS_PER_LINE);
const dateLocale = language === 'en' ? 'en-GB' : 'et-EE';
const createdLabel = language === 'en' ? 'Created' : 'Loodud';
const authorLabel = language === 'en' ? 'Author' : 'Autor';
const messageLabel = language === 'en' ? 'Message' : 'Sõnum';
const chatNumberLabel = (n: number) => (language === 'en' ? `Chat #${n}` : `Vestlus #${n}`);

Check failure on line 433 in controllers/conversion.ts

View workflow job for this annotation

GitHub Actions / lint / check

Missing return type on function
const chatDataSectionLabel = language === 'en' ? 'Chat data' : 'Vestluse andmed';
const messagesSectionLabel = language === 'en' ? 'Messages' : 'Sõnumid';

Expand Down Expand Up @@ -527,6 +527,7 @@
});
});
});
worksheet.addRow([]);
});

const buffer = await workbook.xlsx.writeBuffer();
Expand Down
Loading