mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 14:44:41 +00:00
Fix bug
This commit is contained in:
parent
506f2ac9b8
commit
ff6a72d1d6
@ -241,7 +241,7 @@ func NewProject(ctx context.Context, p *Project) error {
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user