mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-18 18:12:10 +00:00
Merge pull request #789 from sharelatex/mm-exports-specify-clsi-image
Add compiler and imageName to export API request
This commit is contained in:
commit
b1228b7eb2
2 changed files with 11 additions and 0 deletions
|
@ -57,6 +57,9 @@ module.exports = ExportsHandler = self =
|
||||||
historyId: project.overleaf?.history?.id
|
historyId: project.overleaf?.history?.id
|
||||||
historyVersion: historyVersion
|
historyVersion: historyVersion
|
||||||
v1ProjectId: project.overleaf?.id
|
v1ProjectId: project.overleaf?.id
|
||||||
|
metadata:
|
||||||
|
compiler: project.compiler
|
||||||
|
imageName: project.imageName
|
||||||
user:
|
user:
|
||||||
id: user_id
|
id: user_id
|
||||||
firstName: user.first_name
|
firstName: user.first_name
|
||||||
|
|
|
@ -63,6 +63,8 @@ describe 'ExportsHandler', ->
|
||||||
beforeEach (done) ->
|
beforeEach (done) ->
|
||||||
@project =
|
@project =
|
||||||
id: @project_id
|
id: @project_id
|
||||||
|
compiler: 'pdflatex'
|
||||||
|
imageName: 'mock-image-name'
|
||||||
overleaf:
|
overleaf:
|
||||||
id: @project_history_id # for projects imported from v1
|
id: @project_history_id # for projects imported from v1
|
||||||
history:
|
history:
|
||||||
|
@ -100,6 +102,9 @@ describe 'ExportsHandler', ->
|
||||||
historyId: @project_history_id
|
historyId: @project_history_id
|
||||||
historyVersion: @historyVersion
|
historyVersion: @historyVersion
|
||||||
v1ProjectId: @project_history_id
|
v1ProjectId: @project_history_id
|
||||||
|
metadata:
|
||||||
|
compiler: 'pdflatex'
|
||||||
|
imageName: 'mock-image-name'
|
||||||
user:
|
user:
|
||||||
id: @user_id
|
id: @user_id
|
||||||
firstName: @user.first_name
|
firstName: @user.first_name
|
||||||
|
@ -132,6 +137,9 @@ describe 'ExportsHandler', ->
|
||||||
historyId: @project_history_id
|
historyId: @project_history_id
|
||||||
historyVersion: @historyVersion
|
historyVersion: @historyVersion
|
||||||
v1ProjectId: @project_history_id
|
v1ProjectId: @project_history_id
|
||||||
|
metadata:
|
||||||
|
compiler: 'pdflatex'
|
||||||
|
imageName: 'mock-image-name'
|
||||||
user:
|
user:
|
||||||
id: @user_id
|
id: @user_id
|
||||||
firstName: @custom_first_name
|
firstName: @custom_first_name
|
||||||
|
|
Loading…
Reference in a new issue