overhauled form system to new modern form
This commit is contained in:
@@ -15,12 +15,6 @@ router.post("/", async (req: Request, res: Response) => {
|
||||
console.log(LOARequest);
|
||||
|
||||
try {
|
||||
// const result = await pool.query(
|
||||
// `INSERT INTO leave_of_absences
|
||||
// (member_id, filed_date, start_date, end_date, reason)
|
||||
// VALUES (?, ?, ?, ?, ?)`,
|
||||
// [member_id, filed_date, start_date, end_date, reason]
|
||||
// );
|
||||
await createNewLOA(LOARequest);
|
||||
res.sendStatus(201);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user