Skip to content

Commit

Permalink
Merge pull request #106 from coronasafe/debug
Browse files Browse the repository at this point in the history
added debug statements
  • Loading branch information
khavinshankar authored Oct 20, 2023
2 parents 33255fe + aec4e51 commit 7317774
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/utils/dailyRoundUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ export const getAsset = async (assetIp) => {
}

export const getPatientId = async (assetExternalId) => {
return await axios.get(`${careApi}/api/v1/consultation/patient_from_asset/`,
{ headers: await generateHeaders(assetExternalId) }
).then(res => res.data).catch(err => {
console.log("[Daily Round] vvv")
console.log(err?.response?.data)
return {}
})
return await axios
.get(`${careApi}/api/v1/consultation/patient_from_asset/`, {
headers: await generateHeaders(assetExternalId),
})
.then((res) => res.data)
.catch((err) => {
console.log(
"[Daily Round] Failed to fetch patient_id from care",
err.message
);
console.log(err?.response?.status, err?.response?.data);
return {};
});
}

// export const getAssetsByBedId = async (bedId) => {
Expand Down

0 comments on commit 7317774

Please sign in to comment.