Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Oct 7, 2024
1 parent fe5a71a commit aa537ca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions database/seeders/AirQualityProjectSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class AirQualityProjectSeeder extends Seeder {
protected $projectRepository;
protected $projectTranslationRepository;

public function __construct(CrowdSourcingProjectRepository $crowdSourcingProjectRepository,
CrowdSourcingProjectTranslationRepository $crowdSourcingProjectTranslationRepository) {
public function __construct(CrowdSourcingProjectRepository $crowdSourcingProjectRepository,
CrowdSourcingProjectTranslationRepository $crowdSourcingProjectTranslationRepository) {
$this->projectRepository = $crowdSourcingProjectRepository;
$this->projectTranslationRepository = $crowdSourcingProjectTranslationRepository;
}
Expand Down Expand Up @@ -291,12 +291,12 @@ public function run(): void {
}
$solution = CrowdSourcingProjectProblemSolution::updateOrCreate(
['problem_id' => $problem->id, 'slug' => $solution['slug']], [
'problem_id' => $problem->id,
'user_creator_id' => $solution['user_creator_id'],
'slug' => $solution['slug'],
'status_id' => $solution['status_id'],
'img_url' => $solution['img_url'],
]);
'problem_id' => $problem->id,
'user_creator_id' => $solution['user_creator_id'],
'slug' => $solution['slug'],
'status_id' => $solution['status_id'],
'img_url' => $solution['img_url'],
]);
if (isset($solution['translations'])) {
foreach ($solution['translations'] as $translation) {
if (app()->environment() !== 'testing') {
Expand Down

0 comments on commit aa537ca

Please sign in to comment.