Skip to content

Commit a380982

Browse files
committed
no promise
1 parent 5f0f4f2 commit a380982

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dist/privacy.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,9 @@ let sync_metrics = {
388388
* IAB: Data Deletion Request Framework
389389
* https://github.com/InteractiveAdvertisingBureau/Data-Subject-Rights/blob/main/Data%20Deletion%20Request%20Framework.md
390390
*/
391-
let iab_ddr = fetchAndParse("/dsrdelete.json", parseDSRdelete);
391+
let iab_ddr = await fetchAndParse("/dsrdelete.json", parseDSRdelete);
392392

393-
return Promise.all([iab_ddr]).then(([iab_ddr]) => {
394-
return JSON.stringify({
395-
...sync_metrics,
396-
...{ iab_ddr: iab_ddr }
397-
});
393+
return JSON.stringify({
394+
...sync_metrics,
395+
...{ iab_ddr: iab_ddr }
398396
});

0 commit comments

Comments
 (0)