Skip to content

Commit

Permalink
fix: #53 Add Etag header in GeoDiary app (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
trankhacvy authored Feb 10, 2020
1 parent 5c6facc commit 397d003
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/geo-diary/src/sagas/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ export const updateAppointment = async ({ id, ...rest }: ExtendedAppointmentMode
url: `${URLS.appointments}/${id}`,
api: process.env.PLATFORM_API_BASE_URL as string,
method: 'PATCH',
headers: headers,
headers: {
...headers,
['If-Match']: rest._eTag || '',
},
body: rest,
})
return response
Expand Down

0 comments on commit 397d003

Please sign in to comment.