diff --git a/src/models/patient.js b/src/models/patient.js index 856d5ff..5e9d9b1 100644 --- a/src/models/patient.js +++ b/src/models/patient.js @@ -1,16 +1,16 @@ import { db } from "../../knex"; const patientFields = [ - "patientName", - "patientPhoneNumber", - "language", - { patientLanguage: "language" }, + "patientName", + "patientPhoneNumber", + "language", + { patientLanguage: "language" }, ]; export const getPatients = (substring) => { - const query = db("appointments") - .distinct(patientFields) - .where("patientName", "like", `%${substring}%`) + const query = db("appointments") + .distinct(patientFields) + .where("patientName", "like", `%${substring}%`); - return query -} + return query; +};