Skip to content

Commit

Permalink
fix: model
Browse files Browse the repository at this point in the history
  • Loading branch information
Utkarsh Dixit committed May 16, 2021
1 parent a2f4715 commit dad438c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ createOtp:
return
}

txnID, _ = tID["txnID"]
txnID, _ = tID["txnId"]

}(otpResp)

Expand All @@ -121,7 +121,7 @@ readOtp:
h.Write([]byte(otp))

//create token
body := fmt.Sprintf("{\"otp\":\"%x\",\"txnID\":\"%s\"}", h.Sum(nil), txnID)
body := fmt.Sprintf("{\"otp\":\"%x\",\"txnId\":\"%s\"}", h.Sum(nil), txnID)
tokReq, _ := http.NewRequest(http.MethodPost, "https://cdn-api.co-vin.in/api/v2/auth/validateMobileOtp",
bytes.NewBufferString(body))
tokReq.Header.Set("pragma", "no-cache")
Expand Down
2 changes: 1 addition & 1 deletion model.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type Centers struct {
DistrictNameL string `json:"district_name_l"`
BlockName string `json:"block_name"`
BlockNameL string `json:"block_name_l"`
Pincode string `json:"pincode"`
Pincode int `json:"pincode"`
Lat float64 `json:"lat"`
Long float64 `json:"long"`
From string `json:"from"`
Expand Down

0 comments on commit dad438c

Please sign in to comment.