This commit is contained in:
2025-06-30 17:22:49 -04:00
parent c4a5de31f3
commit acddefe1e8
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const notifications = await getNotifications();
const storeUserData = async (notification: Notification): Promise<void> => { const storeUserData = async (notification: Notification): Promise<void> => {
try { try {
const user = await prisma.user.upsert({ await prisma.user.upsert({
where: { userFqn: notification.status.account.fqn }, where: { userFqn: notification.status.account.fqn },
update: { update: {
lastRespondedTo: new Date(Date.now()), lastRespondedTo: new Date(Date.now()),
@ -116,7 +116,6 @@ const generateOllamaRequest = async (
}); });
const ollamaResponse: OllamaResponse = await response.json(); const ollamaResponse: OllamaResponse = await response.json();
await storePromptData(notification, ollamaResponse); await storePromptData(notification, ollamaResponse);
// await postReplyToStatus(notification, ollamaResponse);
return ollamaResponse; return ollamaResponse;
} }
} catch (error: any) { } catch (error: any) {

View File

@ -7,6 +7,8 @@
"outDir": "./dist", "outDir": "./dist",
"rootDir": "./src", "rootDir": "./src",
"strict": true, "strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"skipLibCheck": true, "skipLibCheck": true,
"resolveJsonModule": true "resolveJsonModule": true