From 4816c3794822072576293cc0199fb2841d1c1449 Mon Sep 17 00:00:00 2001 From: lior <diler.lior@gmail.com> Date: Sat, 30 Jul 2022 13:55:01 +0200 Subject: [PATCH] fix not a command --- src/commandExecutor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commandExecutor.js b/src/commandExecutor.js index 8749491..5368e43 100644 --- a/src/commandExecutor.js +++ b/src/commandExecutor.js @@ -78,7 +78,8 @@ async function VerifyAndExecuteDisconnectFromGroup(data, userMediaID) } async function ExecuteNotACommand(data, userMediaID) { - const userState = await databaseManager.findStateByMediaID(userMediaID); + const userDatabase = await databaseManager.findUserByMediaID(userMediaID); + const userState = userDatabase.state; if(userState === "sendingToGroup") { -- GitLab