Skip to content

Commit

Permalink
code review changes to tests and syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Denton committed Aug 9, 2023
1 parent 6b76521 commit 29d2557
Show file tree
Hide file tree
Showing 2 changed files with 271 additions and 215 deletions.
9 changes: 5 additions & 4 deletions modules/cadentApertureMXBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,14 @@ export const cadentAdapter = {

getGpp: (bidRequest, cadentData) => {
if (bidRequest.gppConsent) {
const {gppString: gpp, applicableSections: gppSid} = bidRequest.gppConsent;
if (cadentData.regs) {
cadentData.regs.gpp = bidRequest.gppConsent.gppString;
cadentData.regs.gpp_sid = bidRequest.gppConsent.applicableSections;
cadentData.regs.gpp = gpp;
cadentData.regs.gpp_sid = gppSid;
} else {
cadentData.regs = {
'gpp': bidRequest.gppConsent.gppString,
'gpp_sid': bidRequest.gppConsent.applicableSections
gpp,
gpp_sid: gppSid
}
}
}
Expand Down
Loading

0 comments on commit 29d2557

Please sign in to comment.