filter emails to search by
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d09de4be01
commit
495e8057c8
@ -12,6 +12,7 @@
|
||||
"wildDuck": {
|
||||
"url": "http://localhost",
|
||||
"token": "aaaaa",
|
||||
"domain": "test-codemowers.eu"
|
||||
"domain": "test-codemowers.eu",
|
||||
"preferredDomain": "k-space.ee"
|
||||
}
|
||||
}
|
@ -93,7 +93,9 @@ export class AliasesService<ServiceParams extends AliasesParams = AliasesParams>
|
||||
const emails = params.session?.user?.emails;
|
||||
|
||||
const addressInfoResponse = await Promise.any(
|
||||
emails.map((email: string) =>
|
||||
emails
|
||||
.filter((email: string) => email.endsWith(config.get("wildDuck.preferredDomain")))
|
||||
.map((email: string) =>
|
||||
wildDuckClient.get<Alias>(`addresses/resolve/${email}`),
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user