Skip to content

Commit 8f0f4bb

Browse files
committed
Set iamToken to undefined
1 parent d58b1ed commit 8f0f4bb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"rules": {
3-
"no-console": "off"
3+
"no-console": "off",
4+
"max-len": ["error", { "code": 150 }]
45
},
56
"env": {
67
es6: true,

lib/expressions/personFromOih.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports.getExpression = (msg) => {
2525
schemaUri: 'person',
2626
oihUid: msg.body.meta.oihUid ? msg.body.meta.oihUid : '',
2727
applicationUid: msg.body.meta.applicationUid ? msg.body.meta.applicationUid : '',
28-
iamToken: msg.body.meta.iamToken ? msg.body.meta.iamToken : '',
28+
iamToken: msg.body.meta.iamToken ? msg.body.meta.iamToken : undefined,
2929
},
3030
data: {
3131
uid: msg.body.meta.recordUid,

lib/expressions/personToOih.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint "max-len": ["error", { "code": 170 }] */
2+
13
/**
24
* Copyright 2018 Wice GmbH
35
@@ -29,8 +31,9 @@ module.exports.getExpression = (msg) => {
2931
const expression = {
3032
meta: {
3133
recordUid: msg.body.meta.recordUid,
34+
operation: msg.body.operation,
3235
applicationUid: (msg.body.meta.applicationUid !== undefined && msg.body.meta.applicationUid !== null) ? msg.body.meta.applicationUid : 'appUid not set yet',
33-
iamToken: (msg.body.meta.iamToken !== undefined && msg.body.meta.iamToken !== null) ? msg.body.meta.iamToken : 'iamToken not set yet',
36+
iamToken: (msg.body.meta.iamToken !== undefined && msg.body.meta.iamToken !== null) ? msg.body.meta.iamToken : undefined,
3437
domainId: '5d9b2511d48c29001a202169',
3538
schemaUri: 'person',
3639
},

0 commit comments

Comments
 (0)