mirror of
https://github.com/go-gitea/gitea
synced 2024-11-14 22:11:32 +01:00
Fix bug
This commit is contained in:
parent
506f2ac9b8
commit
ff6a72d1d6
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ func NewProject(ctx context.Context, p *Project) error {
|
||||||
return util.NewInvalidArgumentErrorf("project type is not valid")
|
return util.NewInvalidArgumentErrorf("project type is not valid")
|
||||||
}
|
}
|
||||||
|
|
||||||
return db.WithTx(ctx, func(tx context.Context) error {
|
return db.WithTx(ctx, func(ctx context.Context) error {
|
||||||
if err := db.Insert(ctx, p); err != nil {
|
if err := db.Insert(ctx, p); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue