Skip to content

Commit

Permalink
fix: attempt to fix firebase deploy issue by removing frontend import…
Browse files Browse the repository at this point in the history
… in backend
  • Loading branch information
aaronchan32 committed Feb 19, 2024
1 parent 5b8ed1d commit 739f75a
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions backend/src/controllers/student.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { validationResult } from "express-validator";
import StudentModel from "../models/student";
import validationErrorParser from "../util/validationErrorParser";

import { StudentJSON } from "./../../../frontend/src/api/students";

export type contact = {
lastName: string;
firstName: string;
Expand All @@ -33,6 +31,29 @@ export type typedModel = {
otherString: string;
};

type Contact = {
lastName: string;
firstName: string;
email: string;
phoneNumber: string;
};

type StudentJSON = {
_id: string;
student: Contact;
emergency: Contact;
serviceCoordinator: Contact;
location: string;
medication?: string;
birthday: Date;
intakeDate: Date;
tourDate: Date;
regularPrograms: string[];
varyingPrograms: string[];
dietary: string[];
otherString?: string;
};

export const createStudent: RequestHandler = async (req, res, next) => {
try {
const errors = validationResult(req);
Expand Down

0 comments on commit 739f75a

Please sign in to comment.