Paul
11/11/2021, 2:11 PMUncaught (in promise) Error:
Invalid `prisma.groupChatChannelGroup.findMany()` invocation:
Value out of range for the type. The column `lastRead` contained an invalid datetime value with either day or month set to zero.
But the column doesn't exist in the table.
I check out index.d.ts and I find this:
export type GroupChatChannelGroupByOutputType = {
id: Buffer
...
lastRead: Date
...
_count: GroupChatChannelCountAggregateOutputType | null
_avg: GroupChatChannelAvgAggregateOutputType | null
_sum: GroupChatChannelSumAggregateOutputType | null
_min: GroupChatChannelMinAggregateOutputType | null
_max: GroupChatChannelMaxAggregateOutputType | null
}
lastRead: Date shouldn't exist.
How can I debug where this gets made? ThanksRyan
11/11/2021, 2:17 PMRyan
11/11/2021, 2:18 PMPaul
11/11/2021, 2:19 PMRyan
11/11/2021, 2:29 PMprisma generate
on have the field? If not, then I would like to reproduce this.Paul
11/11/2021, 2:32 PM