mirror of
https://github.com/1f349/site-hosting.git
synced 2025-01-21 06:36:33 +00:00
The branch in the database starts with @
This commit is contained in:
parent
20de90afe8
commit
d3c52c3d35
@ -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,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user