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" }),
1 Reply
nevermind, my issue was related to the onUpdateFn in my schema