fix: init confessions
This commit is contained in:
parent
95df7a9d95
commit
f82b4a2920
app/Initialize
|
@ -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]);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue