mirror of
https://github.com/strapi/strapi.git
synced 2025-07-14 12:32:35 +00:00

* feat(content-releases): update cron scheduling when release scheduledAt is changed * fix ts issue
12 lines
281 B
TypeScript
12 lines
281 B
TypeScript
import * as yup from 'yup';
|
|
|
|
export const RELEASE_SCHEMA = yup
|
|
.object()
|
|
.shape({
|
|
name: yup.string().trim().required(),
|
|
// scheduledAt is a date, but we always receive strings from the client
|
|
scheduledAt: yup.string().nullable(),
|
|
})
|
|
.required()
|
|
.noUnknown();
|