Skip to content

Commit

Permalink
fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mh-Asmi authored and tuxpiper committed Jun 17, 2024
1 parent 84e57b7 commit 8d631ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ushahidi/Modules/V5/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function runAuthorizer($ability, $object)
* @param Request $request
* @return Contact
*/
private function GetWhatsappContact(PostRequest $request):Contact
private function getWhatsappContact(PostRequest $request):Contact
{
$search_request = new Request();
$search_request->merge([
Expand Down Expand Up @@ -152,7 +152,7 @@ public function store(PostRequest $request)

$this->runAuthorizer('store', [Post::class, $request->input('form_id'), $this->getUser()->getId()]);
if ($request->input('source') === 'whatsapp') {
$contact = $this->GetWhatsappContact($request);
$contact = $this->getWhatsappContact($request);
$request->merge([
'contact_id'=>$contact->id,
// To Do: this temporay soluation to save the contact object in posts metadata,
Expand Down

0 comments on commit 8d631ac

Please sign in to comment.