From ec0d2e871eef9a7d2d1c91c782acce4270397fdf Mon Sep 17 00:00:00 2001 From: KevinDog24 <56615743+KevinDog24@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:31:38 -0700 Subject: [PATCH 1/3] Update app.ts - added `` to a string An error message was missing the `` to indicate its text and that was giving errors when ran via docker, did not cause any errors when running locally. --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index a1ec400..04c1f99 100644 --- a/src/app.ts +++ b/src/app.ts @@ -44,7 +44,7 @@ const handleQueue = async (userId) => { try { await processUserMessage(ctx, { flowDynamic, state, provider }); } catch (error) { - console.error(Error processing message for user ${userId}:, error); + console.error(`Error processing message for user ${userId}`:, error); } finally { userLocks.set(userId, false); // Release the lock } @@ -116,4 +116,4 @@ const main = async () => { httpServer(+PORT); }; -main(); \ No newline at end of file +main(); From d7c7896e70c7a3467a8e2ff371fea3eff0c0afb7 Mon Sep 17 00:00:00 2001 From: KevinDog24 <56615743+KevinDog24@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:35:58 -0700 Subject: [PATCH 2/3] Update app.ts Same, grammatical error at closing a string, corrected now. --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 04c1f99..8c36532 100644 --- a/src/app.ts +++ b/src/app.ts @@ -44,7 +44,7 @@ const handleQueue = async (userId) => { try { await processUserMessage(ctx, { flowDynamic, state, provider }); } catch (error) { - console.error(`Error processing message for user ${userId}`:, error); + console.error(`Error processing message for user ${userId}:`, error); } finally { userLocks.set(userId, false); // Release the lock } From 41369b5f4a7ec78a9383630731b7ebaa094070fa Mon Sep 17 00:00:00 2001 From: KevinDog24 <56615743+KevinDog24@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:39:36 -0700 Subject: [PATCH 3/3] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b11b0b2..3ee533b 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "keywords": [], "dependencies": { "@builderbot-plugins/openai-assistants": "^0.0.2", - "@builderbot/bot": "1.2.1", - "@builderbot/provider-baileys": "1.2.1", + "@builderbot/bot": "1.2.2", + "@builderbot/provider-baileys": "1.2.2", "dotenv": "^16.4.5" }, "devDependencies": {