linting
This commit is contained in:
@ -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) {
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user