Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
samau3 committed Apr 9, 2024
1 parent dc2d58b commit 99218dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion server/routes/api/v1/allergies/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { StatusCodes } from 'http-status-codes';
import { Role } from '../../../../models/user.js';

export default async function (fastify) {
Expand Down
3 changes: 1 addition & 2 deletions server/routes/api/v1/conditions/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { StatusCodes } from 'http-status-codes';
import { Role } from '../../../../models/user.js';

export default async function (fastify) {
Expand All @@ -22,7 +21,7 @@ export default async function (fastify) {
const NO_CONDITIONS = ['none', 'no conditions', 'no known conditions', 'n/a'];

if (NO_CONDITIONS.includes(condition.toLowerCase())) {
return reply.send({message: 'No known conditions'});
return reply.send({ message: 'No known conditions' });
}

const results = await fastify.prisma.condition.findMany({
Expand Down
3 changes: 1 addition & 2 deletions server/routes/api/v1/medications/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { StatusCodes } from 'http-status-codes';
import { Role } from '../../../../models/user.js';

export default async function (fastify) {
Expand All @@ -22,7 +21,7 @@ export default async function (fastify) {
const NO_MEDICATIONS = ['none', 'no medications', 'no known medications', 'n/a'];

if (NO_MEDICATIONS.includes(medication.toLowerCase())) {
return reply.send({message: 'No known medications'});
return reply.send({ message: 'No known medications' });
}

const results = await fastify.prisma.medication.findMany({
Expand Down

0 comments on commit 99218dc

Please sign in to comment.