✅️ 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
|
@ -99,9 +99,5 @@ function civicrm_api3_twingle_campaign_Getsingle(array $params): array {
|
|||
"Expected one TwingleCampaign but found $count"
|
||||
);
|
||||
}
|
||||
return civicrm_api3_create_success(
|
||||
$returnValues['values'][$returnValues['id']],
|
||||
$params, 'TwingleCampaign',
|
||||
'Getsingle'
|
||||
);
|
||||
return $returnValues['values'][$returnValues['id']];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue