fix: fix localId
This commit is contained in:
parent
4e14898e97
commit
c17aaf25cb
@ -809,7 +809,9 @@ export async function startApi() {
|
|||||||
const existing = await tx.sessionMessage.findFirst({
|
const existing = await tx.sessionMessage.findFirst({
|
||||||
where: { sessionId: sid, localId: useLocalId }
|
where: { sessionId: sid, localId: useLocalId }
|
||||||
});
|
});
|
||||||
return { msg: existing, update: null };
|
if (existing) {
|
||||||
|
return { msg: existing, update: null };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create message
|
// Create message
|
||||||
|
Loading…
Reference in New Issue
Block a user