small adjustments #1
@ -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