communication type typing

This commit is contained in:
Julian Krauser 2024-09-18 09:43:02 +02:00
parent f673dec5fa
commit 72c47ba212
5 changed files with 34 additions and 8 deletions

View file

@ -116,6 +116,12 @@ export async function getCommunicationsByMember(req: Request, res: Response): Pr
* @returns {Promise<*>}
*/
export async function createMember(req: Request, res: Response): Promise<any> {
const salutation = req.body.salutation;
const firstname = req.body.firstname;
const lastname = req.body.lastname;
const nameaffix = req.body.nameaffix;
const birthdate = req.body.birthdate;
res.status(200).send(0);
}
@ -187,6 +193,11 @@ export async function addCommunicationToMember(req: Request, res: Response): Pro
*/
export async function updateMemberById(req: Request, res: Response): Promise<any> {
const memberId = parseInt(req.params.id);
const salutation = req.body.salutation;
const firstname = req.body.firstname;
const lastname = req.body.lastname;
const nameaffix = req.body.nameaffix;
const birthdate = req.body.birthdate;
res.sendStatus(204);
}