fix async call

This commit is contained in:
2025-06-29 16:28:35 -04:00
parent 7a271fcf8f
commit af568bc9cc

View File

@ -119,10 +119,10 @@ const generateOllamaRequest = async (
}); });
const ollamaResponse: OllamaResponse = await response.json(); const ollamaResponse: OllamaResponse = await response.json();
await storePromptData(notification, ollamaResponse); await storePromptData(notification, ollamaResponse);
console.log( // console.log(
`${notification.status.account.fqn} asked:\n${notification.status.content}\nResponse:\n${ollamaResponse.response}` // `${notification.status.account.fqn} asked:\n${notification.status.content}\nResponse:\n${ollamaResponse.response}`
); // );
postReplyToStatus(notification, ollamaResponse); await postReplyToStatus(notification, ollamaResponse);
} }
} catch (error: any) { } catch (error: any) {
throw new Error(error.message); throw new Error(error.message);