We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9212f commit abe6f52Copy full SHA for abe6f52
apps/backend/src/yjs/yjs.service.ts
@@ -185,11 +185,20 @@ export class YjsService
185
if (node.type !== 'note') {
186
continue;
187
}
188
- const { title, id } = node.data; // TODO: 이모지 추가
+
189
+ // node.data는 페이지에 대한 정보
190
+ const { title, id } = node.data;
191
const { x, y } = node.position;
192
const isHolding = node.isHolding;
193
+ this.logger.log('log', node);
194
if (!isHolding) {
- await this.nodeService.updateNode(id, { title, x, y });
195
+ // TODO : node의 경우 key 값을 page id가 아닌 node id로 변경
196
+ const findPage = await this.pageService.findPageById(id);
197
+ await this.nodeService.updateNode(findPage.node.id, {
198
+ title,
199
+ x,
200
+ y,
201
+ });
202
203
204
0 commit comments