mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 16:55:30 +00:00
Fixed import of nodemailer ('nodemailer.default' does not exist)
This commit is contained in:
committed by
Rory&
parent
842c37b712
commit
459e40d211
@@ -27,7 +27,7 @@ export class SMTPEmailClient extends BaseEmailClient {
|
||||
override async init(): Promise<void> {
|
||||
try {
|
||||
// try to import the transporter package
|
||||
this.nodemailer = require("nodemailer").default;
|
||||
this.nodemailer = require("nodemailer");
|
||||
} catch {
|
||||
// if the package is not installed, log an error and return void so we don't set the transporter
|
||||
console.error("[Email] nodemailer is not installed. Please run `npm install --no-save nodemailer` to install it.");
|
||||
|
||||
Reference in New Issue
Block a user