Error in DB update because of Date
For some reason drizzle is complaining that the property
birthDate
is not a Date
because it cannot run the .toISOString()
method on it. But I'm sure this is not the case.... I really don't know what is going on.
birthDate: timestamp("birth_date", { mode: "date" }),
![No description](https://cdn.answeroverflow.com/1250754445160091771/Screenshot_2024-06-13_at_12.08.40_PM.png)
![No description](https://cdn.answeroverflow.com/1250754445520797696/Screenshot_2024-06-13_at_12.08.16_PM.png)
1 Reply
nevermind, my issue was related to the onUpdateFn in my schema