File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ import (
1313 "strings"
1414 "time"
1515
16- "slices"
17-
1816 db "github.com/Hopertz/rent/db/sqlc"
1917 "github.com/labstack/echo/v4"
18+ "slices"
2019)
2120
2221type SignupData struct {
@@ -40,11 +39,8 @@ func (app *application) registerAdminHandler(c echo.Context) error {
4039 return c .JSON (http .StatusBadRequest , envelope {"error" : err .Error ()})
4140 }
4241
43- slog .Info ("Input Body" , "email" , input .Email )
4442 emails := strings .Split (app .config .emails , "," )
4543
46- slog .Info ("After split" , "emails" , emails )
47-
4844 found := slices .Contains (emails , input .Email )
4945
5046 if ! found {
@@ -131,6 +127,7 @@ func (app *application) registerAdminHandler(c echo.Context) error {
131127 return c .JSON (http .StatusCreated , nil )
132128}
133129
130+
134131func (app * application ) activateAdminHandler (c echo.Context ) error {
135132
136133 var input struct {
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ func main() {
7373
7474 slog .Info ("database connection established" )
7575
76- slog .Info ("email after parsed" , "emails" , cfg .emails )
77-
7876 expvar .NewString ("version" ).Set (version )
7977
8078 expvar .Publish ("goroutines" , expvar .Func (func () interface {} {
You can’t perform that action at this time.
0 commit comments