From dccb4ac84eb875087f218021169a34aff047b677 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 7 May 2024 11:21:38 +0200 Subject: [PATCH] Cleaned up unused controller method - this isn't being used anywhere, so we can clean it up --- ghost/core/core/server/api/endpoints/mail.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ghost/core/core/server/api/endpoints/mail.js b/ghost/core/core/server/api/endpoints/mail.js index 74f4765533..4967c5aa62 100644 --- a/ghost/core/core/server/api/endpoints/mail.js +++ b/ghost/core/core/server/api/endpoints/mail.js @@ -47,24 +47,6 @@ const controller = { query(frame) { return _private.sendMail(frame.data); } - }, - - sendTest(frame) { - return mailService.utils.generateContent({template: 'test'}) - .then((content) => { - const payload = { - mail: [{ - message: { - to: frame.user.get('email'), - subject: tpl(messages.testGhostEmail), - html: content.html, - text: content.text - } - }] - }; - - return _private.sendMail(payload); - }); } };