Adds full text indexes, and advanced search capabilities to the StyleAI chat bot.

This commit is contained in:
Cameron Redmore 2025-04-26 14:20:15 +01:00
parent a8c7729558
commit 910d1b3d21
11 changed files with 252 additions and 36 deletions

View file

@ -28,13 +28,13 @@ async function getUserAuthenticators(userId)
}
// Helper function to get a user by username
async function getUserByUsername(username)
export async function getUserByUsername(username)
{
return prisma.user.findUnique({ where: { username } });
}
// Helper function to get a user by ID
async function getUserById(id)
export async function getUserById(id)
{
return prisma.user.findUnique({ where: { id } });
}