feat: Most of Item and Order controllers

This commit is contained in:
2025-11-10 20:32:23 -07:00
parent 6313a85e96
commit c81b181515
12 changed files with 421 additions and 28 deletions

View File

@@ -30,6 +30,7 @@ func UserInDatabase(pool *pgxpool.Pool) gin.HandlerFunc {
if query_err != nil {
log.Println("UserInDatabase(): ERROR Failed to query for user count")
ctx.AbortWithStatus(http.StatusInternalServerError)
return
}
if count == 0 {
@@ -38,6 +39,7 @@ func UserInDatabase(pool *pgxpool.Pool) gin.HandlerFunc {
if exec_err != nil {
log.Printf("UserInDatabase(): ERROR Failed to create user... %s", exec_err.Error())
ctx.AbortWithStatus(http.StatusInternalServerError)
return
}
}
}