Fix inverted condition for Authorization and update expected JSON body #16

Merged
jacob1123 merged 2 commits from minor-fixes into master 2022-02-23 22:56:05 +01:00
Showing only changes of commit b5e3e7bea0 - Show all commits

View File

@ -19,7 +19,7 @@ const (
func MustGetToken(c *gin.Context) budgeteer.Token { //nolint:ireturn
token := c.MustGet(ParamName)
if token, ok := token.(budgeteer.Token); !ok {
if token, ok := token.(budgeteer.Token); ok {
return token
}