From bf8a7f45dc9b941cd3673980b2a4a2ea6e99034e Mon Sep 17 00:00:00 2001 From: Ludovico7 Date: Thu, 21 Nov 2024 23:36:20 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20lint=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/crdt/crdt.gateway.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/crdt/crdt.gateway.ts b/server/src/crdt/crdt.gateway.ts index a7600ff9..e4e6d9ad 100644 --- a/server/src/crdt/crdt.gateway.ts +++ b/server/src/crdt/crdt.gateway.ts @@ -376,7 +376,7 @@ export class CrdtGateway implements OnGatewayInit, OnGatewayConnection, OnGatewa ); // 1. 워크스페이스 가져오기 const workspace = this.workSpaceService.getWorkspace(); - + const currentPage = workspace.pageList.find((p) => p.id === data.pageId); if (!currentPage) { throw new Error(`Page with id ${data.pageId} not found`); @@ -388,7 +388,7 @@ export class CrdtGateway implements OnGatewayInit, OnGatewayConnection, OnGatewa targetId: data.targetId, beforeId: data.beforeId, afterId: data.afterId, - pageId: data.pageId + pageId: data.pageId, } as RemoteBlockReorderOperation; client.broadcast.emit("reorder/block", operation); } catch (error) {