-
Notifications
You must be signed in to change notification settings - Fork 642
Closed
Description
After update to the 3.0.0 I got this validation error.
static get jsonSchema() {
return {
type: "object",
required: [
"first_name",
"last_name",
"email",
"phone_number",
],
properties: {
first_name: { type: "string" },
last_name: { type: "string" },
last_change: { type: "date-time" },
email: { type: "email" },
phone_number: { type: "string" },
last_try: { type: "date-time" },
last_logged: { type: "date-time" },
},
};
}const now = new Date(Date.now());
const lastLogged = response.isValid ? { last_logged: now } : {};
const toPatch = {
last_try: now,
...lastLogged,
};
await user.$query().patch(toPatch);Metadata
Metadata
Assignees
Labels
No labels