Bug 1906003 - PPA API - Fix async issue in JS Module r=cbguder

This change fixes a bug in the PPA API's that causes multiple source/target impressions not to store properly in the data store due to a promise being returned instead of the evaluation of the statement in the compareImpression function. This causes an issue where we cannot handle multiple ads / suppliers running at the same time.

The plan is to release this in the Fx 128 dot release.

Differential Revision: https://phabricator.services.mozilla.com/D215656
This commit is contained in:
Brendan Birdsong 2024-07-03 19:23:52 +00:00
Родитель 8a844f9ac4
Коммит 1ecd8cc4b5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -163,7 +163,7 @@ export class PrivateAttributionService {
await impressionStore.put(impressions, key);
}
async compareImpression(cur, impression) {
compareImpression(cur, impression) {
return cur.source === impression.source && cur.target === impression.target;
}