From 919f0fc9aa0231b662966cf181f875ce26aefe56 Mon Sep 17 00:00:00 2001 From: Jerald-Golden-B Date: Thu, 22 May 2025 16:05:19 +0530 Subject: [PATCH] feat: add comment field to CommentSchema for new comment functionality --- app/src/modules/collaboration/comments/commentsGroup.tsx | 1 + app/src/types/collaborationTypes.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/modules/collaboration/comments/commentsGroup.tsx b/app/src/modules/collaboration/comments/commentsGroup.tsx index 06dc20e..6c10f3d 100644 --- a/app/src/modules/collaboration/comments/commentsGroup.tsx +++ b/app/src/modules/collaboration/comments/commentsGroup.tsx @@ -79,6 +79,7 @@ function CommentsGroup() { commentId: MathUtils.generateUUID(), creatorId: userId, createdAt: new Date().toISOString(), + comment: '', lastUpdatedAt: new Date().toISOString(), position: position.toArray(), rotation: [0, 0, 0], diff --git a/app/src/types/collaborationTypes.d.ts b/app/src/types/collaborationTypes.d.ts index 6a055a7..445949a 100644 --- a/app/src/types/collaborationTypes.d.ts +++ b/app/src/types/collaborationTypes.d.ts @@ -3,6 +3,7 @@ interface CommentSchema { commentId: string; creatorId: string; createdAt: string; + comment: string; lastUpdatedAt: string; position: [number, number, number]; rotation: [number, number, number];