From 658bd83275b455d0b2dbe8b4c576180344eed96f Mon Sep 17 00:00:00 2001 From: Matt DiMeglio Date: Wed, 4 Mar 2026 00:26:37 -0500 Subject: [PATCH] edit full to base --- api/services/medications/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/medications/index.js b/api/services/medications/index.js index bc35ee0..0a25731 100644 --- a/api/services/medications/index.js +++ b/api/services/medications/index.js @@ -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) {