-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove hardcoded email from adminUserCreateEmail mail function
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,7 @@ export class MailService implements IMailService { | |
<p>keyshade Team</p> | ||
</body> | ||
` | ||
await this.sendEmail('[email protected]', subject, body) | ||
await this.sendEmail(process.env.ADMIN_EMAIL, subject, body) | ||
} | ||
|
||
private async sendEmail( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,7 +192,7 @@ export class UserService { | |
const adminUser = await this.prisma.user.create({ | ||
data: { | ||
name: 'Admin', | ||
email: process.env.ADMIN_EMAIL || '[email protected]', | ||
email: process.env.ADMIN_EMAIL, | ||
isAdmin: true, | ||
isActive: true, | ||
isOnboardingFinished: true | ||
|