0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 22:11:32 +01: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
}