Skip to content

add missing "feed_id" json tag to FeedID param #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project/10-posts/src/handler_feed_follows.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (cfg *apiConfig) handlerFeedFollowsGet(w http.ResponseWriter, r *http.Reque

func (cfg *apiConfig) handlerFeedFollowCreate(w http.ResponseWriter, r *http.Request, user database.User) {
type parameters struct {
FeedID uuid.UUID
FeedID uuid.UUID `json:"feed_id"`
}
decoder := json.NewDecoder(r.Body)
params := parameters{}
Expand Down
2 changes: 1 addition & 1 deletion project/4-create_users/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In this step, we'll be adding an endpoint to create new users on the server. We'
SQLC is just a command line tool, it's not a package that we need to import. I recommend [installing](https://docs.sqlc.dev/en/latest/overview/install.html) it using `go install`:

```bash
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
```

Then run `sqlc version` to make sure it's installed correctly.
Expand Down
2 changes: 1 addition & 1 deletion project/8-feedfollows/src/handler_feed_follows.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (cfg *apiConfig) handlerFeedFollowsGet(w http.ResponseWriter, r *http.Reque

func (cfg *apiConfig) handlerFeedFollowCreate(w http.ResponseWriter, r *http.Request, user database.User) {
type parameters struct {
FeedID uuid.UUID
FeedID uuid.UUID `json:"feed_id"`
}
decoder := json.NewDecoder(r.Body)
params := parameters{}
Expand Down
2 changes: 1 addition & 1 deletion project/9-scraper/src/handler_feed_follows.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (cfg *apiConfig) handlerFeedFollowsGet(w http.ResponseWriter, r *http.Reque

func (cfg *apiConfig) handlerFeedFollowCreate(w http.ResponseWriter, r *http.Request, user database.User) {
type parameters struct {
FeedID uuid.UUID
FeedID uuid.UUID `json:"feed_id"`
}
decoder := json.NewDecoder(r.Body)
params := parameters{}
Expand Down