fix: Parameters missing in afterFind trigger of authentication adapters (#8458)

This commit is contained in:
Daniel
2023-03-06 13:18:00 +11:00
committed by GitHub
parent d05cfcdb95
commit ce34747e8a
4 changed files with 27 additions and 4 deletions

View File

@@ -850,7 +850,12 @@ RestQuery.prototype.handleAuthAdapters = async function () {
return;
}
await Promise.all(
this.response.results.map(result => this.config.authDataManager.runAfterFind(result.authData))
this.response.results.map(result =>
this.config.authDataManager.runAfterFind(
{ config: this.config, auth: this.auth },
result.authData
)
)
);
};