✅️ meet standard for getsingle api response
return array with object values instead of api success response
This commit is contained in:
parent
88a77456b8
commit
d904ae931f
11 changed files with 59 additions and 95 deletions
|
@ -110,10 +110,5 @@ function civicrm_api3_twingle_event_Getsingle(array $params): array {
|
|||
if ($count != 1) {
|
||||
return civicrm_api3_create_error("Expected one TwingleEvent but found $count");
|
||||
}
|
||||
return civicrm_api3_create_success(
|
||||
$returnValues['values'][$returnValues['id']],
|
||||
$params,
|
||||
'TwingleEvent',
|
||||
'Getsingle'
|
||||
);
|
||||
return $returnValues['values'][$returnValues['id']];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue