Skip to content

Commit

Permalink
fix: chat ingestion update (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Dec 27, 2024
1 parent 37623d7 commit 7c61541
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/utils/ingest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ export async function ingestChatEvent(
`;
} else if (operation === "update") {
update.endedAt = timestamp;
delete shared.id;
delete update.id;

await sql`
UPDATE run SET ${sql({ ...shared, ...update })} WHERE id = ${previousRun.id}
Expand Down

0 comments on commit 7c61541

Please sign in to comment.