Adds full text indexes, and advanced search capabilities to the StyleAI chat bot.
This commit is contained in:
parent
a8c7729558
commit
910d1b3d21
11 changed files with 252 additions and 36 deletions
|
@ -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 } });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue