Skip to content

Commit

Permalink
Fix additional prettier warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
timmytonyboots committed Nov 21, 2023
1 parent 137465a commit 33b91ed
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/models/patient.js
Original file line number Diff line number Diff line change
@@ -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;
};

0 comments on commit 33b91ed

Please sign in to comment.