refactor(pr): Fixed some PR issues

This commit is contained in:
Cipher Vance
2025-11-15 13:18:36 -06:00
parent b0301599c9
commit 268df9886e
5 changed files with 41 additions and 15 deletions

View File

@@ -14,7 +14,8 @@ import (
func IndexGet(c *gin.Context) {
emails, err := database.GetAllEmails()
if err != nil {
c.AbortWithError(http.StatusInternalServerError, err)
c.HTML(http.StatusInternalServerError, "admin_index.html",
gin.H{"error": "Failed to retrieve subscribers"})
return
}
c.HTML(http.StatusOK, "admin_index.html",