mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:27:01 +00:00
sync in transaction
This commit is contained in:
@@ -111,6 +111,15 @@ class RecordManager
|
||||
|
||||
public function syncToConfig(): void
|
||||
{
|
||||
$this->entityManager->getTransactionManager()->run(function () {
|
||||
$this->syncToConfigInTransaction();
|
||||
});
|
||||
}
|
||||
|
||||
private function syncToConfigInTransaction(): void
|
||||
{
|
||||
$this->lock();
|
||||
|
||||
$rates = [];
|
||||
|
||||
foreach ($this->configDataProvider->getCurrencyList() as $code) {
|
||||
|
||||
Reference in New Issue
Block a user