From 4ebce3e2a272686520eb9f7085e7b8bf8fbe9975 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 12 Jan 2022 12:18:51 +0530 Subject: [PATCH] fix: use from email to test SMTP Signed-off-by: Pranav C --- packages/nocodb/package-lock.json | 4 ++-- packages/nocodb/src/example/dockerRunMysql.ts | 2 +- packages/nocodb/src/plugins/smtp/SMTP.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/nocodb/package-lock.json b/packages/nocodb/package-lock.json index 794b279beb..4499413e0b 100644 --- a/packages/nocodb/package-lock.json +++ b/packages/nocodb/package-lock.json @@ -1,12 +1,12 @@ { "name": "nocodb", - "version": "0.84.5", + "version": "0.84.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "nocodb", - "version": "0.84.5", + "version": "0.84.6", "license": "AGPL-3.0-or-later", "dependencies": { "@google-cloud/storage": "^5.7.2", diff --git a/packages/nocodb/src/example/dockerRunMysql.ts b/packages/nocodb/src/example/dockerRunMysql.ts index 3b9af1dcde..c4a0ff7400 100644 --- a/packages/nocodb/src/example/dockerRunMysql.ts +++ b/packages/nocodb/src/example/dockerRunMysql.ts @@ -17,7 +17,7 @@ const date = new Date(); process.env[ `NC_DB` ] = `mysql2://localhost:3306?u=root&p=password&d=meta_${date.getFullYear()}_${date.getMonth() + - 1}_${date.getDate()}1`; + 1}_${date.getDate()}`; // process.env[`NC_DB`] = `pg://localhost:3306?u=root&p=password&d=mar_24`; // process.env[`NC_DB`] = `pg://localhost:5432?u=postgres&p=password&d=abcde`; // process.env[`NC_TRY`] = 'true'; diff --git a/packages/nocodb/src/plugins/smtp/SMTP.ts b/packages/nocodb/src/plugins/smtp/SMTP.ts index ecaee629c7..d017440793 100644 --- a/packages/nocodb/src/plugins/smtp/SMTP.ts +++ b/packages/nocodb/src/plugins/smtp/SMTP.ts @@ -35,10 +35,10 @@ export default class SMTP implements IEmailAdapter { } } - public async test(email): Promise { + public async test(): Promise { try { await this.mailSend({ - to: email, + to: this.input.from, subject: 'Test email', html: 'Test email' } as any);