Add region #32

Open
mattdimegs wants to merge 4 commits from refactor/update-med-calls into main
Showing only changes of commit 658bd83275 - Show all commits

View file

@ -1,6 +1,6 @@
import express from 'express';
import { databaseServices } from '../index.js';
import { fullMedicationInformationSchema } from '../validations/medications.js';
import { baseMedicationInformationSchema, fullMedicationInformationSchema } from '../validations/medications.js';
export const medicationRouter = express.Router();
@ -22,7 +22,7 @@ medicationRouter.post('/base/', async (req, res) => {
const body = req?.body;
try {
await fullMedicationInformationSchema.validate(body);
await baseMedicationInformationSchema.validate(body);
data = await databaseServices.getBaseMedications(body);
res.status(200);
} catch (err) {