Skip to content

Commit

Permalink
fix: add missing ID key from FeedItem struct (#30)
Browse files Browse the repository at this point in the history
* add missing ID attribute from FeedItem struct

* change go mod

* revert test change

* minor fmt change
  • Loading branch information
whoAbhishekSah authored May 2, 2024
1 parent 67c5882 commit 4a7cb33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions knock/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type Feed struct {
}

type FeedItem struct {
ID string `json:"id"`
Activities []*MessageActivity `json:"activities"`
Actors []*User `json:"actors"`
TotalActivities int `json:"total_activities"`
Expand Down
1 change: 1 addition & 0 deletions knock/users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ func TestFeed_Get(t *testing.T) {
want := &Feed{
FeedItems: []*FeedItem{
{
ID: "1sMtIsRvZtYf86aOfkM2PCpC6Xc",
Activities: []*MessageActivity{
{
ID: "activity-id",
Expand Down

0 comments on commit 4a7cb33

Please sign in to comment.