Skip to content

Commit

Permalink
chore: lint ์„ค์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovico7 committed Nov 21, 2024
1 parent 5cf6b10 commit bf8a7f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/crdt/crdt.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand All @@ -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) {
Expand Down

0 comments on commit bf8a7f4

Please sign in to comment.