Replace PostgreSQL and Docker deployment with embedded Turso, Drizzle relational queries v2, native systemd deployment on port 43821, and fresh SQLite migrations.
Hop-State: A_06FP5KEDBTB4A9ZT7QB498G Hop-Proposal: R_06FP5KDWMCKVVMQZT4MVZ28 Hop-Task: T_06FP5DZ7T0G45FG93PT90B8 Hop-Attempt: AT_06FP5DZ7T0PKQW99V27JCV8
This commit is contained in:
@@ -51,10 +51,7 @@ export async function POST(request: Request) {
|
||||
// First get conversation IDs where user is participant1 (local user)
|
||||
// For participant2, we need to check by handle since it's stored as text (can be remote)
|
||||
const conversations = await db.query.chatConversations.findMany({
|
||||
where: or(
|
||||
eq(chatConversations.participant1Id, userId),
|
||||
eq(chatConversations.participant2Handle, user.handle)
|
||||
),
|
||||
where: { OR: [{ participant1Id: userId }, { participant2Handle: user.handle }] },
|
||||
});
|
||||
|
||||
const conversationIds = conversations.map(c => c.id);
|
||||
|
||||
Reference in New Issue
Block a user