@@ -88,10 +88,10 @@ public function createStatusNotification(array $data, array $config): array
88
88
89
89
$ now = new DateTime ();
90
90
$ message = [
91
- 'kanaal ' => 'zaak.status.created ' ,
91
+ 'kanaal ' => 'zaken ' ,
92
92
'hoofdObject ' => $ objectData ['zaak ' ],
93
- 'resource ' => 'Zaak ' ,
94
- 'resourceUrl ' => $ objectData ['zaak ' ],
93
+ 'resource ' => 'status ' ,
94
+ 'resourceUrl ' => $ objectData ['url ' ],
95
95
'actie ' => 'create ' ,
96
96
'aanmaakdatum ' => $ now ->format ('c ' ),
97
97
];
@@ -157,15 +157,16 @@ public function createCaseNotification(array $data, array $config): array
157
157
$ array = $ object ->toArray (['embedded ' => true ]);
158
158
159
159
if (in_array (needle: $ array ['toelichting ' ], haystack: ['intra_mun_relocation ' , 'inter_mun_relocation ' ]) === true ) {
160
- $ this ->extendSync ($ object , $ array );
160
+ $ object = $ this ->extendSync ($ object , $ array );
161
161
}
162
+ $ array = $ object ->toArray (['embedded ' => true ]);
162
163
163
164
$ now = new DateTime ();
164
165
$ message = [
165
- 'kanaal ' => 'zaak.created ' ,
166
+ 'kanaal ' => 'zaken ' ,
166
167
'hoofdObject ' => $ object ->getUri (),
167
- 'resource ' => 'Zaak ' ,
168
- 'resourceUrl ' => $ object -> getUri () ,
168
+ 'resource ' => 'rol ' ,
169
+ 'resourceUrl ' => $ array [ ' rollen ' ][ 0 ][ ' url ' ] ,
169
170
'actie ' => 'create ' ,
170
171
'aanmaakdatum ' => $ now ->format ('c ' ),
171
172
];
0 commit comments