fix: minor improvements, wrong argument order, ambigious columns in sql, log messages, etc

This commit is contained in:
2026-08-21 16:21:33 +02:00
parent 441c47163c
commit e91e80e725
4 changed files with 22 additions and 10 deletions
+5
View File
@@ -7,6 +7,11 @@ import (
"net/http"
)
// TODO: Move to own file
func Status(ctx context.Context, w http.ResponseWriter, status int) {
w.WriteHeader(status)
}
func JSON(ctx context.Context, w http.ResponseWriter, status int, data any) {
payload, err := json.Marshal(data)
if err != nil {