Skip to content

Commit

Permalink
fix: change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebianchi committed May 11, 2022
1 parent 4f0b0a2 commit 7fa4864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ function getMiaHeaders() {
const userProperties = this.getUserProperties()
const groups = this.getGroups().join(',')
const clientType = this.getClientType()
const isBackoffice = this.isFromBackOffice() ? '1' : ''
const fromBackoffice = this.isFromBackOffice() ? '1' : ''
return {
...userId !== null ? { [this.USERID_HEADER_KEY]: userId } : {},
...userProperties !== null ? { [this.USER_PROPERTIES_HEADER_KEY]: JSON.stringify(userProperties) } : {},
...groups ? { [this.GROUPS_HEADER_KEY]: groups } : {},
...clientType !== null ? { [this.CLIENTTYPE_HEADER_KEY]: clientType } : {},
...isBackoffice ? { [this.BACKOFFICE_HEADER_KEY]: isBackoffice } : {},
...fromBackoffice ? { [this.BACKOFFICE_HEADER_KEY]: fromBackoffice } : {},
}
}

Expand Down
1 change: 0 additions & 1 deletion tests/httpClient.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ tap.test('httpClient', test => {
assert.end()
})


innerTest.end()
})

Expand Down

0 comments on commit 7fa4864

Please sign in to comment.