From af568bc9cc31c408eb6934803afadb22eb2e2bdc Mon Sep 17 00:00:00 2001 From: matty Date: Sun, 29 Jun 2025 16:28:35 -0400 Subject: [PATCH] fix async call --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 8399f6c..a95d4c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -119,10 +119,10 @@ const generateOllamaRequest = async ( }); const ollamaResponse: OllamaResponse = await response.json(); await storePromptData(notification, ollamaResponse); - console.log( - `${notification.status.account.fqn} asked:\n${notification.status.content}\nResponse:\n${ollamaResponse.response}` - ); - postReplyToStatus(notification, ollamaResponse); + // console.log( + // `${notification.status.account.fqn} asked:\n${notification.status.content}\nResponse:\n${ollamaResponse.response}` + // ); + await postReplyToStatus(notification, ollamaResponse); } } catch (error: any) { throw new Error(error.message);