mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Fix typo
This commit is contained in:
parent
a5e7ca24cc
commit
d9e58003f5
@ -890,7 +890,9 @@ const castValueFromType = (type, value) => {
|
||||
|
||||
date.setTime(value);
|
||||
if (!dateFns.isValid(date)) {
|
||||
throw new Error(`Invalid ${type} format, expected a `);
|
||||
throw new Error(
|
||||
`Invalid ${type} format, expected a timestamp or an ISO date`
|
||||
);
|
||||
}
|
||||
|
||||
return date;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user