Move the name check before tx

No point in making a DB query if we know we don't want to be able to
delete/update the default endpoint.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2024-05-07 10:07:47 +00:00
parent 2a3d524a71
commit 8726cb994e
3 changed files with 34 additions and 11 deletions

View file

@ -30,7 +30,6 @@ import (
)
const (
defaultGithubEndpoint string = "github.com"
testUploadBaseURL string = "https://uploads.example.com"
testBaseURL string = "https://example.com"
testAPIBaseURL string = "https://api.example.com"