Skip to content

Commit

Permalink
ozone 2.5.0 adapter - fixup for prebidCircleCI tests to remove object…
Browse files Browse the repository at this point in the history
… values on user.eid
  • Loading branch information
Afsheen Bigdeli committed Feb 18, 2021
1 parent dcccf18 commit f5995f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ozoneBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -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}`);
}
Expand Down

0 comments on commit f5995f6

Please sign in to comment.