@social-mail/social-mail-web-server 1.4.895 → 1.4.896
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/services/EmailAddressService.d.ts.map +1 -1
- package/dist/server/services/EmailAddressService.js +4 -0
- package/dist/server/services/EmailAddressService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/services/EmailAddressService.ts +4 -0
package/package.json
CHANGED
|
@@ -78,7 +78,11 @@ export default class EmailAddressService {
|
|
|
78
78
|
using scope = globalServices.createScope();
|
|
79
79
|
const db = scope.resolve(SocialMailContext);
|
|
80
80
|
const mb = await db.mailboxes.where({ emailAddress }, (p) => (x) => x.emailAddress.emailAddress === p.emailAddress)
|
|
81
|
+
.include((x) => x.domain.hostedDomain)
|
|
81
82
|
.first();
|
|
83
|
+
if (mb.domain?.hostedDomain) {
|
|
84
|
+
return mb.mailboxID;
|
|
85
|
+
}
|
|
82
86
|
return mb?.mailboxID > 0 ? mb.mailboxID : void 0;
|
|
83
87
|
}
|
|
84
88
|
|