pass metrics in transactions

This commit is contained in:
Pascal Fischer
2025-10-15 16:29:36 +02:00
parent 02a04958e7
commit 8393bf1b17

View File

@@ -2062,6 +2062,7 @@ func (s *SqlStore) ExecuteInTransaction(ctx context.Context, operation func(stor
func (s *SqlStore) withTx(tx *gorm.DB) Store {
return &SqlStore{
db: tx,
metrics: s.metrics,
storeEngine: s.storeEngine,
}
}