@social-mail/social-mail-web-server 1.4.839 → 1.4.841

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.4.839",
3
+ "version": "1.4.841",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -56,9 +56,7 @@ export default class UserAuthFactorEvents extends AuthenticatedEvents<UserAuthFa
56
56
 
57
57
  const db = ServiceProvider.resolve(this, SocialMailContext);
58
58
 
59
- const phones = await db.userAuthFactors.where(entity, (p) => (x) => x.userID === p.userID && x.method === "otp-in").toArray();
60
- const phoneNumbers = phones.map((x) => x.phoneNumber);
61
- const v = await ServiceProvider.resolve(this, ExternalOtpInService).create(phoneNumbers);
59
+ const v = await ServiceProvider.resolve(this, ExternalOtpInService).create([entity.phoneNumber]);
62
60
  entity.verificationID = v.verificationID;
63
61
  entity.verificationToken = v;
64
62
  return;
@@ -3,7 +3,7 @@ import semver from "semver";
3
3
 
4
4
  export default async function seedUI(config: DBConfig) {
5
5
 
6
- const version = "1.2.315";
6
+ const version = "1.2.317";
7
7
 
8
8
  const existing = await config.getValue(UIPackageConfig, false);
9
9
  if (existing) {