refactor ai naming and make omni raw-json first
This commit is contained in:
@@ -66,7 +66,7 @@ async function validateSessionFromPeer(peer: any) {
|
||||
const [user, team, conv] = await Promise.all([
|
||||
prisma.user.findUnique({ where: { id: userId }, select: { id: true } }),
|
||||
prisma.team.findUnique({ where: { id: teamId }, select: { id: true } }),
|
||||
prisma.chatConversation.findFirst({
|
||||
prisma.aiConversation.findFirst({
|
||||
where: { id: conversationId, teamId, createdByUserId: userId },
|
||||
select: { id: true },
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user