From 69603690626d30497367ce4788e8855b76b531c7 Mon Sep 17 00:00:00 2001 From: Lucas Vieira Date: Wed, 27 Nov 2024 10:59:00 -0300 Subject: [PATCH] fix using documentId as sessionId --- apps/api/src/yjs/v2/executor/python.ts | 2 +- apps/api/src/yjs/v2/executor/sql.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/yjs/v2/executor/python.ts b/apps/api/src/yjs/v2/executor/python.ts index d0a879f0..18e93102 100644 --- a/apps/api/src/yjs/v2/executor/python.ts +++ b/apps/api/src/yjs/v2/executor/python.ts @@ -130,7 +130,7 @@ export class PythonExecutor implements IPythonExecutor { private async updateDataFrames(blockId: string) { const newDataframes = await this.effects.listDataFrames( this.workspaceId, - this.documentId + this.sessionId ) const blocks = new Set(Array.from(this.blocks.keys())) diff --git a/apps/api/src/yjs/v2/executor/sql.ts b/apps/api/src/yjs/v2/executor/sql.ts index da5527ac..4a9ace81 100644 --- a/apps/api/src/yjs/v2/executor/sql.ts +++ b/apps/api/src/yjs/v2/executor/sql.ts @@ -299,7 +299,7 @@ export class SQLExecutor implements ISQLExecutor { try { await this.effects.renameDataFrame( this.workspaceId, - this.documentId, + this.sessionId, dataframeName.value, dataframeName.newValue )