mosh-hamedani / issue-tracker

https://issue-tracker-pied.vercel.app
214 stars 99 forks source link

Object literal may only specify known properties, and 'assignedToUserId' does not exist in type #3

Closed fsdhemanth648 closed 9 months ago

fsdhemanth648 commented 11 months ago

const updatedIssue = await prisma.issue.update({ where: { id: issue.id }, data: { title, description, assignedToUserId, }, });

Object literal may only specify known properties, and 'assignedToUserId' does not exist in type '(Without<IssueUpdateInput, IssueUncheckedUpdateInput> & IssueUncheckedUpdateInput) | (Without<...> & IssueUpdateInput)'.ts(2353) index.d.ts(2083, 5): The expected type comes from property 'data' which is declared here on type '{ select?: IssueSelect | null | undefined; data: (Without<IssueUpdateInput, IssueUncheckedUpdateInput> & IssueUncheckedUpdateInput) | (Without<...> & IssueUpdateInput); where: IssueWhereUniqueInput; }'

trxtk89 commented 11 months ago

Run npx prisma generate