fix: fix localId

This commit is contained in:
Steve Korshakov 2025-07-18 23:02:35 -07:00
parent 4e14898e97
commit c17aaf25cb

View File

@ -809,7 +809,9 @@ export async function startApi() {
const existing = await tx.sessionMessage.findFirst({
where: { sessionId: sid, localId: useLocalId }
});
return { msg: existing, update: null };
if (existing) {
return { msg: existing, update: null };
}
}
// Create message