refac: code_execution.uuid -> id
convention
This commit is contained in:
1 parent
adb1bfcaa8
commit
55f14e37ea
3 files changed
+8
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user