diff --git a/src/main.ts b/src/main.ts index b69d580..608b3b7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -33,7 +33,7 @@ const notifications = await getNotifications(); const storeUserData = async (notification: Notification): Promise => { try { - const user = await prisma.user.upsert({ + await prisma.user.upsert({ where: { userFqn: notification.status.account.fqn }, update: { lastRespondedTo: new Date(Date.now()), @@ -116,7 +116,6 @@ const generateOllamaRequest = async ( }); const ollamaResponse: OllamaResponse = await response.json(); await storePromptData(notification, ollamaResponse); - // await postReplyToStatus(notification, ollamaResponse); return ollamaResponse; } } catch (error: any) { diff --git a/tsconfig.json b/tsconfig.json index 4a9c0f9..d6fe538 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,8 @@ "outDir": "./dist", "rootDir": "./src", "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "forceConsistentCasingInFileNames": true, "skipLibCheck": true, "resolveJsonModule": true