1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 14:44:41 +00:00
This commit is contained in:
Lunny Xiao 2024-03-30 20:04:19 +08:00
parent 506f2ac9b8
commit ff6a72d1d6
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -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
}