fix api.ue.cours + api.ue.tp to return 'formations' id list
This commit is contained in:
parent
4e1ca634ff
commit
465fde053b
|
@ -57,8 +57,7 @@ class coursController{
|
|||
if( is_null($created_id) || !is_int($created_id) )
|
||||
return ['error' => new Error(Err::RepoError)];
|
||||
|
||||
|
||||
return ['created_id' => $created_id];
|
||||
return ['created_id' => $created_id, 'formations' => $formations];
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class tpController{
|
|||
if( is_null($created_id) || !is_int($created_id) )
|
||||
return ['error' => new Error(Err::RepoError)];
|
||||
|
||||
return ['created_id' => $created_id];
|
||||
return ['created_id' => $created_id, 'formations' => $formations];
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue