@social-mail/social-mail-web-server 1.7.739 → 1.7.741

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.7.739",
3
+ "version": "1.7.741",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -66,9 +66,9 @@ export default class CaptchaService {
66
66
  return true;
67
67
  }
68
68
 
69
- async delete(v: IVerification) {
70
- const { id, accessCode, code } = v;
71
- await this.db.verificationTokens.statements.delete({ verificationID: id as any, accessCode, code });
69
+ async delete(v: VerificationToken) {
70
+ const { verificationID } = this.ss.decryptKey((v as any).$key);
71
+ await this.db.verificationTokens.statements.delete({ verificationID });
72
72
  return true;
73
73
  }
74
74
 
@@ -139,7 +139,7 @@ export default class CreateSocialSiteWorkflow extends Workflow<{ userID: number,
139
139
  isStatic: true,
140
140
  hosts,
141
141
  templateID,
142
- fromEmail: user.contactEmail,
142
+ fromEmail: "info@" + domainName,
143
143
  supportEmail: user.contactEmail,
144
144
  title: name,
145
145
  channelDomains