Skip to content

Commit

Permalink
fix: Comments in demo meeting (#10623)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkrick authored Dec 19, 2024
1 parent 75b7e03 commit f0883c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/client/modules/demo/commentLookup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {generateJSON} from '@tiptap/core'
import {serverTipTapExtensions} from '../../shared/tiptap/serverTipTapExtensions'

const commentLookup = {
botRef6: [
`{"blocks":[{"key":"2c991","text":"We could make our standups async?","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}`
JSON.stringify(generateJSON('<p>We could make our standups async?</p>', serverTipTapExtensions))
]
} as const

Expand Down
3 changes: 1 addition & 2 deletions packages/client/modules/demo/initDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {PALETTE} from '~/styles/paletteV3'
import {Task as ITask} from '../../../server/postgres/types/index.d'
import {RetrospectiveMeeting} from '../../../server/postgres/types/Meeting'
import JiraProjectId from '../../shared/gqlIds/JiraProjectId'
import {convertTipTapTaskContent} from '../../shared/tiptap/convertTipTapTaskContent'
import demoUserAvatar from '../../styles/theme/images/avatar-user.svg'
import {ExternalLinks, MeetingSettingsThreshold, RetroDemo} from '../../types/constEnums'
import {DISCUSS, GROUP, REFLECT, RETROSPECTIVE, VOTE} from '../../utils/constants'
Expand Down Expand Up @@ -438,7 +437,7 @@ export class DemoComment {
},
db: RetroDemoDB
) {
this.content = convertTipTapTaskContent(content)
this.content = content
this.createdAt = new Date().toJSON()
this.updatedAt = new Date().toJSON()
this.createdBy = isAnonymous ? null : userId
Expand Down

0 comments on commit f0883c1

Please sign in to comment.