Skip to content

Commit

Permalink
fix: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSkriba committed May 26, 2024
1 parent f19169e commit 27a127e
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export class XskribaXbublavyReservationApp {

private async getAmbulances(): Promise<Ambulance[]> {
try {
const response = await AmbulanceApiFactory(undefined, this.apiBase).getAmbulances()
const response = await AmbulanceApiFactory(undefined, this.apiBase).getAmbulances({
headers: {
'Cache-Control': 'no-cache'
}
})
return response.data
} catch (err) {
console.error(err.message)
Expand All @@ -52,7 +56,11 @@ export class XskribaXbublavyReservationApp {

private async getPatients(): Promise<Patient[]> {
try {
const response = await PatientApiFactory(undefined, this.apiBase).getPatients()
const response = await PatientApiFactory(undefined, this.apiBase).getPatients({
headers: {
'Cache-Control': 'no-cache'
}
})
return response.data
} catch (err) {
console.error(err.message)
Expand Down

0 comments on commit 27a127e

Please sign in to comment.