The branch in the database starts with @

This commit is contained in:
Melon 2025-01-08 19:58:17 +00:00
parent 20de90afe8
commit d3c52c3d35
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -180,14 +180,14 @@ func (h *Handler) extractTarGzUpload(fileData io.Reader, site, branch string) er
n := time.Now().UTC() n := time.Now().UTC()
err = h.db.AddBranch(context.Background(), database.AddBranchParams{ err = h.db.AddBranch(context.Background(), database.AddBranchParams{
Branch: branch, Branch: "@" + branch,
Domain: site, Domain: site,
LastUpdate: n, LastUpdate: n,
Enable: true, Enable: true,
}) })
if err != nil { if err != nil {
return h.db.UpdateBranch(context.Background(), database.UpdateBranchParams{ return h.db.UpdateBranch(context.Background(), database.UpdateBranchParams{
Branch: branch, Branch: "@" + branch,
Domain: site, Domain: site,
LastUpdate: n, LastUpdate: n,
}) })