Skip to content

Commit

Permalink
Merge pull request #206 from boostcampwm2023/BE-feature/board-update
Browse files Browse the repository at this point in the history
updateMindmap ์ด๋ฒคํŠธ ์ˆ˜์ •
  • Loading branch information
tnpfldyd authored Dec 7, 2023
2 parents 04582a8 + bbff2fa commit c7b299e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nestjs-BE/server/src/board-trees/board-trees.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class BoardTreesGateway {
const payloadObject = JSON.parse(payload);
const { boardId, operation: serializedOperation } = payloadObject;

const operationObject = JSON.parse(serializedOperation);
const operationTypeMap = {
add: OperationAdd.parse<string>,
delete: OperationDelete.parse<string>,
Expand All @@ -46,7 +45,7 @@ export class BoardTreesGateway {
};

const operation =
operationTypeMap[operationObject.operationType](operationObject);
operationTypeMap[serializedOperation.operationType](serializedOperation);
this.boardTreesService.applyOperation(boardId, operation);

client.broadcast
Expand Down

0 comments on commit c7b299e

Please sign in to comment.