mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #17109 from overleaf/jpa-tpds-remove-sl-prefix-2
[misc] remove ShareLaTeX branding from tpds job headers 2/2 GitOrigin-RevId: da42dacbfe7f14f8f7e4da0534b13ef9b8c046cd
This commit is contained in:
parent
b2dd70e0b4
commit
881abf6e5f
1 changed files with 0 additions and 14 deletions
|
@ -51,11 +51,6 @@ async function addEntity(params) {
|
|||
const job = {
|
||||
method: 'post',
|
||||
headers: {
|
||||
sl_entity_id: entityId,
|
||||
sl_entity_type: entityType,
|
||||
sl_entity_rev: rev,
|
||||
sl_project_id: projectId,
|
||||
sl_folder_id: folderId,
|
||||
'x-entity-id': entityId,
|
||||
'x-entity-rev': rev,
|
||||
'x-entity-type': entityType,
|
||||
|
@ -126,9 +121,6 @@ async function deleteEntity(params) {
|
|||
const job = {
|
||||
method: 'delete',
|
||||
headers: {
|
||||
sl_project_id: projectId,
|
||||
sl_entity_id: entityId,
|
||||
sl_entity_type: entityType,
|
||||
'x-entity-id': entityId,
|
||||
'x-entity-type': entityType,
|
||||
'x-project-id': projectId,
|
||||
|
@ -153,7 +145,6 @@ async function createProject(params) {
|
|||
const job = {
|
||||
method: 'post',
|
||||
headers: {
|
||||
sl_project_id: projectId.toString(),
|
||||
'x-project-id': projectId,
|
||||
},
|
||||
uri: Path.join(
|
||||
|
@ -216,21 +207,16 @@ async function moveEntity(params) {
|
|||
|
||||
for (const userId of projectUserIds) {
|
||||
const headers = {
|
||||
sl_project_id: projectId,
|
||||
sl_entity_rev: rev,
|
||||
'x-project-id': projectId,
|
||||
'x-entity-rev': rev,
|
||||
}
|
||||
if (entityId != null) {
|
||||
headers.sl_entity_id = entityId
|
||||
headers['x-entity-id'] = entityId
|
||||
}
|
||||
if (entityType != null) {
|
||||
headers.sl_entity_type = entityType
|
||||
headers['x-entity-type'] = entityType
|
||||
}
|
||||
if (folderId != null) {
|
||||
headers.sl_folder_id = folderId
|
||||
headers['x-folder-id'] = folderId
|
||||
}
|
||||
const job = {
|
||||
|
|
Loading…
Reference in a new issue