refac: code_execution.uuid -> id

convention
This commit is contained in:
Timothy J. Baek
2024-10-13 23:04:04 -07:00
parent adb1bfcaa8
commit 55f14e37ea
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -176,14 +176,14 @@
}
} else if (type === 'citation') {
if (data?.type === 'code_execution') {
// Code execution; update existing code execution by UUID,
// Code execution; update existing code execution by ID,
// otherwise append.
if (!message?.code_executions) {
message.code_executions = [];
}
let is_update = false;
for (let i = 0; i < message.code_executions.length; i++) {
if (message.code_executions[i].uuid === data.uuid) {
if (message.code_executions[i].id === data.id) {
message.code_executions[i] = data;
is_update = true;
break;