edit full to base

This commit is contained in:
Matt DiMeglio 2026-03-04 00:26:37 -05:00
parent 254b86a6af
commit 658bd83275

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) {