diff --git a/services/web/app/coffee/Features/Exports/ExportsHandler.coffee b/services/web/app/coffee/Features/Exports/ExportsHandler.coffee index 17a0798ead..0594b9fc2b 100644 --- a/services/web/app/coffee/Features/Exports/ExportsHandler.coffee +++ b/services/web/app/coffee/Features/Exports/ExportsHandler.coffee @@ -57,6 +57,9 @@ module.exports = ExportsHandler = self = historyId: project.overleaf?.history?.id historyVersion: historyVersion v1ProjectId: project.overleaf?.id + metadata: + compiler: project.compiler + imageName: project.imageName user: id: user_id firstName: user.first_name diff --git a/services/web/test/unit/coffee/Exports/ExportsHandlerTests.coffee b/services/web/test/unit/coffee/Exports/ExportsHandlerTests.coffee index a210532e9b..974e8e0c1b 100644 --- a/services/web/test/unit/coffee/Exports/ExportsHandlerTests.coffee +++ b/services/web/test/unit/coffee/Exports/ExportsHandlerTests.coffee @@ -63,6 +63,8 @@ describe 'ExportsHandler', -> beforeEach (done) -> @project = id: @project_id + compiler: 'pdflatex' + imageName: 'mock-image-name' overleaf: id: @project_history_id # for projects imported from v1 history: @@ -100,6 +102,9 @@ describe 'ExportsHandler', -> historyId: @project_history_id historyVersion: @historyVersion v1ProjectId: @project_history_id + metadata: + compiler: 'pdflatex' + imageName: 'mock-image-name' user: id: @user_id firstName: @user.first_name @@ -132,6 +137,9 @@ describe 'ExportsHandler', -> historyId: @project_history_id historyVersion: @historyVersion v1ProjectId: @project_history_id + metadata: + compiler: 'pdflatex' + imageName: 'mock-image-name' user: id: @user_id firstName: @custom_first_name