- commit
- 166262d
- parent
- 52f603d
- author
- Eric Bower
- date
- 2023-09-05 16:10:10 +0000 UTC
refactor(pgs): check handler should return 404
1 files changed,
+3,
-3
+3,
-3
1@@ -47,21 +47,21 @@ func checkHandler(w http.ResponseWriter, r *http.Request) {
2 props, err := getProjectFromSubdomain(subdomain)
3 if err != nil {
4 logger.Error(err)
5- w.WriteHeader(http.StatusUnprocessableEntity)
6+ w.WriteHeader(http.StatusNotFound)
7 return
8 }
9
10 u, err := dbpool.FindUserForName(props.Username)
11 if err != nil {
12 logger.Error(err)
13- w.WriteHeader(http.StatusUnprocessableEntity)
14+ w.WriteHeader(http.StatusNotFound)
15 return
16 }
17
18 p, err := dbpool.FindProjectByName(u.ID, props.ProjectName)
19 if err != nil {
20 logger.Error(err)
21- w.WriteHeader(http.StatusUnprocessableEntity)
22+ w.WriteHeader(http.StatusNotFound)
23 return
24 }
25