refactor(ux): consolidate BMAD skills, update design system, and clean up Prisma generated client
This commit is contained in:
19
keep-notes/test-chat-db.ts
Normal file
19
keep-notes/test-chat-db.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { chatService } from './lib/ai/services/chat.service';
|
||||
import { prisma } from './lib/prisma';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
// 1. Fetch the user who owns 'sepehr' or get any user
|
||||
const user = await prisma.user.findFirst();
|
||||
if (!user) {
|
||||
console.log('No user found');
|
||||
return;
|
||||
}
|
||||
|
||||
// Simulate chat function (we need to mock auth unfortunately, because chatService uses auth())
|
||||
// Let's modify chatService temporarily or duplicate its logic.
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
run();
|
||||
Reference in New Issue
Block a user