Skip to content

Commit

Permalink
chore: lint μ„€μ •
Browse files Browse the repository at this point in the history
Co-authored-by: hyonun <[email protected]>
Co-authored-by: minjungw00 <[email protected]>
Co-authored-by: Jang seo yun <[email protected]>
  • Loading branch information
4 people committed Nov 21, 2024
1 parent bcddda1 commit 5024188
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
.DS_Store
.env

tsconfig.tsbuildinfo

# Jest globalConfig file
../globalConfig.json
4 changes: 1 addition & 3 deletions server/src/crdt/crdt.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import {
CursorPosition,
} from "@noctaCrdt/Interfaces";
import { Logger } from "@nestjs/common";
import { Block } from "@noctaCrdt/Node";
import { BlockId, CharId } from "@noctaCrdt/NodeId";
import { nanoid } from "nanoid";
import { Page } from "@noctaCrdt/Page";
import { EditorCRDT } from "@noctaCrdt/Crdt";
Expand Down Expand Up @@ -266,7 +264,7 @@ export class CrdtGateway implements OnGatewayInit, OnGatewayConnection, OnGatewa
throw new Error(`Page with id ${data.pageId} not found`);
}
const currentBlock = currentPage.crdt.LinkedList.nodeMap[JSON.stringify(data.blockId)];
//currentBlock 이 block μΈμŠ€ν„΄μŠ€κ°€ μ•„λ‹˜
// currentBlock 이 block μΈμŠ€ν„΄μŠ€κ°€ μ•„λ‹˜
if (!currentBlock) {
throw new Error(`Block with id ${data.blockId} not found`);
}
Expand Down
4 changes: 0 additions & 4 deletions server/src/crdt/crdt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { Workspace, WorkspaceDocument } from "./schemas/workspace.schema";
import { WorkSpace as CRDTWorkSpace } from "@noctaCrdt/WorkSpace";
import { Model } from "mongoose";
import { EditorCRDT, BlockCRDT } from "@noctaCrdt/Crdt";
import { BlockId, CharId } from "@noctaCrdt/NodeId";
import { Block, Char } from "@noctaCrdt/Node";

import { BlockLinkedList, TextLinkedList } from "@noctaCrdt/LinkedList";
import { Page as CRDTPage } from "@noctaCrdt/Page";
import { WorkSpaceSerializedProps } from "@noctaCrdt/Interfaces";

Expand Down

0 comments on commit 5024188

Please sign in to comment.