|
@@ 62-66 (lines=5) @@
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
// Sync users |
| 62 |
|
$db->transaction(function () use ($container) { |
| 63 |
|
$this->comment('Start users synchronize at ' . ($start = Carbon::now())); |
| 64 |
|
$container->call([$this, 'importUsers']); |
| 65 |
|
$this->comment('Ends ' . Carbon::now()->diffForHumans($start)); |
| 66 |
|
}); |
| 67 |
|
|
| 68 |
|
|
| 69 |
|
$this->output->newLine(); |
|
@@ 73-77 (lines=5) @@
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
// Sync messages |
| 73 |
|
$db->transaction(function () use ($container) { |
| 74 |
|
$this->comment('Start messages synchronize at ' . ($start = Carbon::now())); |
| 75 |
|
$container->call([$this, 'importMessages']); |
| 76 |
|
$this->comment('Ends ' . Carbon::now()->diffForHumans($start)); |
| 77 |
|
}); |
| 78 |
|
|
| 79 |
|
|
| 80 |
|
$this->output->newLine(); |