Skip to content

Commit

Permalink
Merge pull request #376 from boostcampwm-2024/refactor-be-#375
Browse files Browse the repository at this point in the history
노드 yMap 색상 저장 위치 변경
  • Loading branch information
github-actions[bot] authored Dec 3, 2024
2 parents e321c3b + cd4f649 commit 98ce563
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/websocket/src/yjs/yjs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,14 @@ export class YjsService
if (node.type !== 'note') continue;

// node.data는 페이지에 대한 정보
const { id } = node.data;
// const { id, color} = node.data;
// TODO : 구조 분해 할당 쓰려다가 지금은 color를 받아오지 못 할 것 같아서 직접 꺼내왔습니다.
// TODO : 색상 추가되면 변경하겠습니다.
const id = node.data.id;
const color = node.data.color ?? '#FFFFFF'
const { x, y } = node.position;
const isHolding = node.isHolding;
const color = node.color ?? '#FFFFFF';
// const color = node.color ?? '#FFFFFF';
if (isHolding) continue;

const pageResponse = await axios.get(
Expand Down

0 comments on commit 98ce563

Please sign in to comment.