Skip to content

Commit

Permalink
Fixed Encounter Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vicwere committed Apr 15, 2024
1 parent c5dedc7 commit 30b638a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/processes/visit.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const {
} = require("../../models/clinic");

const {
Visits
Visit
} = require("../../models/visits");


Expand Down Expand Up @@ -246,7 +246,7 @@ router.get('/search', async (req, res) => {
})

//Save Visit Variables
const new_visit = await Visits.create({
const new_visit = await Visit.create({
client_id: client.id,
is_scheduled: is_scheduled,
visit_type: visit_type,
Expand All @@ -267,7 +267,7 @@ router.get('/search', async (req, res) => {
who_stage:who_stage,
});

//console.log(new_anc_visit);

if(new_visit){
return res.json({
code: 200,
Expand Down

0 comments on commit 30b638a

Please sign in to comment.