-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lanvard#42 check if value is present
- Loading branch information
Reindert Vetter
committed
May 17, 2020
1 parent
9670680
commit 32204f3
Showing
3 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ var User = struct { | |
|
||
OneByRequest: func(request inter.Request) (contract.User, error) { | ||
var err error | ||
userId := request.UrlValues().Number("user") | ||
userId := request.UrlValue("user").Number() | ||
|
||
user := model.NewUser(userId, "[email protected]") | ||
return user, err | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters