From f5995f61a094e490ee5ea0529efd455a7d055690 Mon Sep 17 00:00:00 2001 From: Afsheen Bigdeli Date: Thu, 18 Feb 2021 07:54:04 -0500 Subject: [PATCH] ozone 2.5.0 adapter - fixup for prebidCircleCI tests to remove object values on user.eid --- modules/ozoneBidAdapter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ozoneBidAdapter.js b/modules/ozoneBidAdapter.js index 24e481759b1..8ada9d59ae2 100644 --- a/modules/ozoneBidAdapter.js +++ b/modules/ozoneBidAdapter.js @@ -606,7 +606,7 @@ export const spec = { */ findAllUserIds(bidRequest) { var ret = {}; - // @todo - what is fabirck called & where to look for it? If it's a simple value then it will automatically be ok + // @todo - what is fabrick called & where to look for it? If it's a simple value then it will automatically be ok let searchKeysSingle = ['pubcid', 'tdid', 'id5id', 'parrableId', 'idl_env', 'criteoId', 'criteortus', 'sharedid', 'lotamePanoramaId', 'fabrickId']; if (bidRequest.hasOwnProperty('userId')) { @@ -616,7 +616,7 @@ export const spec = { if (typeof (bidRequest.userId[key]) == 'string') { ret[key] = bidRequest.userId[key]; } else if (typeof (bidRequest.userId[key]) == 'object') { - ret[key] = Object.values(bidRequest.userId[key])[0]; + ret[key] = bidRequest.userId[key][Object.keys(bidRequest.userId[key])[0]]; // cannot use Object.values } else { this.logError(`failed to get string key value for userId : ${key}`); }