Skip to content
This repository has been archived by the owner on Jan 3, 2022. It is now read-only.

Commit

Permalink
Updated correct pin code URL
Browse files Browse the repository at this point in the history
URL was not changed in previous commit.
  • Loading branch information
pramodpots committed May 10, 2021
1 parent a7c77d2 commit 9458204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function scheduleCowinPinger(params) {
function pingCowin({ key, hook, age, districtId, appointmentsListLimit, date, pin }) {
let url = `https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=${districtId}&date=${date}`
if (pin) {
url = `https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?pincode=${pin}&date=${date}`
url = `https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByPin?pincode=${pin}&date=${date}`
}
axios.get(url, { headers: { 'User-Agent': sampleUserAgent } }).then((result) => {
const { centers } = result.data;
Expand Down

0 comments on commit 9458204

Please sign in to comment.