This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Yup from 'yup'; | |
import { parseISO, endOfDay, addMonths } from 'date-fns'; | |
import Registration from '../models/Registration'; | |
import Student from '../models/Student'; | |
import Plan from '../models/Plan'; | |
class RegistrationController { | |
async store(req, res) { | |
// validação para os campos | |
const schema = Yup.object().shape({ |
NewerOlder