Skip to content

Commit 3a500fb

Browse files
Do the actual importing
1 parent 5750058 commit 3a500fb

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

src/Console/ImportStravaDataConsoleCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use App\Domain\Strava\Activity\ImportActivities\ImportActivities;
66
use App\Domain\Strava\Activity\Stream\CalculateBestStreamAverages\CalculateBestStreamAverages;
77
use App\Domain\Strava\Activity\Stream\ImportActivityStreams\ImportActivityStreams;
8+
use App\Domain\Strava\Athlete\Weight\ImportAthleteWeight\ImportAthleteWeight;
89
use App\Domain\Strava\Challenge\ImportChallenges\ImportChallenges;
910
use App\Domain\Strava\Ftp\ImportFtp\ImportFtp;
1011
use App\Domain\Strava\Gear\ImportGear\ImportGear;
@@ -50,6 +51,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5051
$this->commandBus->dispatch(new ImportGear($output));
5152
$this->commandBus->dispatch(new ImportChallenges($output));
5253
$this->commandBus->dispatch(new ImportFtp($output));
54+
$this->commandBus->dispatch(new ImportAthleteWeight($output));
5355
$this->commandBus->dispatch(new CalculateBestStreamAverages($output));
5456

5557
return Command::SUCCESS;

tests/Console/__snapshots__/ImportStravaDataConsoleCommandTest__testExecute__7.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commandName": "App\\Domain\\Strava\\Activity\\Stream\\CalculateBestStreamAverages\\CalculateBestStreamAverages",
2+
"commandName": "App\\Domain\\Strava\\Athlete\\Weight\\ImportAthleteWeight\\ImportAthleteWeight",
33
"payload": {
44
"output": {}
55
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commandName": "App\\Domain\\Strava\\Activity\\Stream\\CalculateBestStreamAverages\\CalculateBestStreamAverages",
3+
"payload": {
4+
"output": {}
5+
}
6+
}

tests/strava.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)