Skip to content

Commit

Permalink
fix: remove hardcoded email from adminUserCreateEmail mail function
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jan 30, 2024
1 parent 32fac3e commit b2b9a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/mail/services/mail.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/user/service/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2b9a9e

Please sign in to comment.