Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

include bom for public export data

Fendy Heryantof5ab9e02b609
diff --git a/packages/nocodb/src/modules/jobs/jobs/data-export/public-data-export.controller.ts b/packages/nocodb/src/modules/jobs/jobs/data-export/public-data-export.controller.ts
index 0ee53be584..936320f2d8 100644
--- a/packages/nocodb/src/modules/jobs/jobs/data-export/public-data-export.controller.ts
+++ b/packages/nocodb/src/modules/jobs/jobs/data-export/public-data-export.controller.ts
@@ -61,7 +61,11 @@ export class PublicDataExportController {
const job = await this.jobsService.add(JobTypes.DataExport, {
context,
- options,
+ options: {
+ ...(options ?? {}),
+ // includeByteOrderMark when export is triggered from controller
+ includeByteOrderMark: true,
+ },
modelId: view.fk_model_id,
viewId: view.id,
user: req.user,