From 5c5b255196fcbde237f2fcb3874ebb25a0368feb Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 22 Sep 2022 05:21:37 -0500 Subject: [PATCH] Use async/await for email --- scripts/server/developer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/developer.js b/scripts/server/developer.js index a9c6c91e..3a87fc1f 100644 --- a/scripts/server/developer.js +++ b/scripts/server/developer.js @@ -449,10 +449,10 @@ function saveServerDataCommand(command, params, client) { // =========================================================================== -function testEmailCommand(command, params, client) { +async function testEmailCommand(command, params, client) { try { messagePlayerAlert(client, `Sending test email to ${params}`); - sendEmail(params, "Player", "Test email", "Just testing the SMTP module for the server!"); + await sendEmail(params, "Player", "Test email", "Just testing the SMTP module for the server!"); } catch (error) { messagePlayerError(client, "The email could not be sent! Error: ${error}"); return false;