Skip to content

Commit

Permalink
Update createThread data typing to omit id (#785)
Browse files Browse the repository at this point in the history
* Update createThread data typing to omit id

* remove unused _id type
  • Loading branch information
bdbch authored Feb 1, 2024
1 parent 3e179c0 commit 8bac353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/provider/src/TiptapCollabProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class TiptapCollabProvider extends HocuspocusProvider {
return this.getYThreads().get(index)
}

createThread(data: Omit<TCollabThread, '_id' | 'createdAt' | 'updatedAt' | 'comments'>) {
createThread(data: Omit<TCollabThread, 'id' | 'createdAt' | 'updatedAt' | 'comments'>) {
const thread = new Y.Map()
thread.set('id', uuidv4())
thread.set('createdAt', (new Date()).toISOString())
Expand Down

0 comments on commit 8bac353

Please sign in to comment.