Fix: Get courses
This commit is contained in:
parent
ff50f3a523
commit
3d50db70cf
|
@ -75,7 +75,7 @@ class InitializeMembers {
|
|||
]);
|
||||
|
||||
foreach ($this->api->coursesFor($member->id) as $course) {
|
||||
$m->courses()->attach(Course::where('name', $course->course_name)->firstOrFail(), [
|
||||
$m->courses()->attach(Course::where('nami_id', $course->course_id)->firstOrFail(), [
|
||||
'organizer' => $course->organizer,
|
||||
'event_name' => $course->event_name,
|
||||
'completed_at' => $course->completed_at,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4753cbef2ec1c677f01fcfbfcf362e3651d87799
|
||||
Subproject commit 2b7aca9b0dc30c8e0fb0dd9ca9df7b74358b8803
|
|
@ -127,7 +127,7 @@ class InitializeTest extends TestCase
|
|||
$this->withoutExceptionHandling();
|
||||
$this->initializeProvider(function($backend) {
|
||||
$backend->fakeMembers([
|
||||
$this->member(['courses' => [ ['entries_baustein' => '1a', 'entries_id' => 788, 'entries_veranstalter' => 'KJA', 'entries_vstgName' => 'eventname', 'entries_vstgTag' => '2021-11-12 00:00:00'] ]])
|
||||
$this->member(['courses' => [ ['bausteinId' => 506, 'id' => 788, 'veranstalter' => 'KJA', 'vstgName' => 'eventname', 'vstgTag' => '2021-11-12 00:00:00'] ]])
|
||||
]);
|
||||
});
|
||||
$this->post('/login', [
|
||||
|
|
Loading…
Reference in New Issue