Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/origranot/reduced.to into…
Browse files Browse the repository at this point in the history
… integrate-memphis-qm
  • Loading branch information
orig committed Sep 18, 2023
2 parents d9e5ae4 + 2b9bdb6 commit 00bc8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/backend/src/novu/novu.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export class NovuService {

async sendVerificationEmail(user: UserContext) {
const domain =
process.env.NODE_ENV === 'production'
this.config.general.env === 'production'
? `https://${this.config.front.domain}`
: `http://${this.config.front.domain}:${this.config.general.frontendPort}`;
const verificationUrl = `${this.appConfigService.getConfig().front.domain}/register/verify/${user.verificationToken}`;
const verificationUrl = `${domain}/register/verify/${user.verificationToken}`;

await this.novu.trigger('new-user', {
to: {
Expand Down

0 comments on commit 00bc8ae

Please sign in to comment.