From d3c52c3d3559d1bdc225de3c3874902055c85747 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Wed, 8 Jan 2025 19:58:17 +0000 Subject: [PATCH] The branch in the database starts with @ --- upload/upload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/upload.go b/upload/upload.go index dd8521d..3ed0110 100644 --- a/upload/upload.go +++ b/upload/upload.go @@ -180,14 +180,14 @@ func (h *Handler) extractTarGzUpload(fileData io.Reader, site, branch string) er n := time.Now().UTC() err = h.db.AddBranch(context.Background(), database.AddBranchParams{ - Branch: branch, + Branch: "@" + branch, Domain: site, LastUpdate: n, Enable: true, }) if err != nil { return h.db.UpdateBranch(context.Background(), database.UpdateBranchParams{ - Branch: branch, + Branch: "@" + branch, Domain: site, LastUpdate: n, })