зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8a844f9ac4
Коммит
1ecd8cc4b5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче