Skip to content

Commit beb66d0

Browse files
committed
feat: minor bug creating the url
1 parent 9046608 commit beb66d0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

data/requests.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CNJ
2-
0000832-35.2018.4.0.13202
2+
0000832-35.2018.4.01.3202
33
0001256-77.2022.8.26.0625
44
0001256-77.2022.8.26.0625
5-
0000832-35.2018.4.0.13202
5+
0000832-35.2018.4.01.3202

request/api_async_request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync"
77
)
88

9-
const API = "1/_search"
9+
const API = "/_search"
1010

1111
// AsyncAPIRequest makes API requests asynchronously
1212
func AsyncAPIRequest(users []models.ReadCsv, numberOfWorkers int, url string, method string, auth string) ([]models.ResponseBody, error) {

request/api_define_tj.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
)
77

88
func defineTJ(cnjNumber string) (string, error) {
9-
CNJ.ValidateCNJ()
109
decomposedCNJ, err := CNJ.DecomposeCNJ(cnjNumber)
1110
if err != nil {
1211
return "", err

0 commit comments

Comments
 (0)