fix: init confessions

This commit is contained in:
philipp lang 2021-04-10 00:31:53 +02:00
parent 95df7a9d95
commit f82b4a2920
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ class InitializeConfessions {
public function handle() {
$this->bar->task('Synchronisiere Konfessionen', function() {
collect($this->api->confessions()->data)->each(function($confession) {
\App\Confession::create(['nami_id' => $confession->id, 'name' => $confession->descriptor, 'is_null' => $this->nullName === $confession->descriptor]);
$this->api->confessions()->each(function($confession) {
\App\Confession::create(['nami_id' => $confession->id, 'name' => $confession->name, 'is_null' => $this->nullName === $confession->name]);
});
});
}