Skip to content

Commit ca891e2

Browse files
committed
fix: stats missing from thing query
1 parent 14466df commit ca891e2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
# vendor/
1919

2020
# Go workspace file
21-
go.work
21+
go.work
22+
23+
main.go

thing/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func Query(ids []int) (*Items, error) {
3535
}
3636
idParam := strings.Join(idStrings, ",")
3737

38-
url := fmt.Sprintf("%s?id=%s", constants.ThingEndpoint, idParam)
38+
url := fmt.Sprintf("%s?id=%s&stats=1", constants.ThingEndpoint, idParam)
3939

4040
var thing Items
4141
if err := request.FetchAndUnmarshal(url, &thing); err != nil {

0 commit comments

Comments
 (0)