Skip to content

Commit

Permalink
Merge pull request #19 from mspecs/fix/viewings_grab_correct_id
Browse files Browse the repository at this point in the history
  • Loading branch information
axeldetlofsson committed Nov 13, 2023
2 parents 4047d71 + b11ba2a commit b5263b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function mspecs_add_prospective_buyer($deal, $buyer_details){
$deal = mspecs_get_deal($deal);
if(!$deal) return null;

return Mspecs::get_api_client()->add_prospective_buyer($deal->ID, $buyer_details);
return Mspecs::get_api_client()->add_prospective_buyer($deal->mspecs_id, $buyer_details);
}

/**
Expand All @@ -256,7 +256,7 @@ function mspecs_add_buyer_to_viewing($deal, $viewing_id, $buyer_details){
$deal = mspecs_get_deal($deal);
if(!$deal) return null;

return Mspecs::get_api_client()->add_buyer_to_viewing($deal->ID, $viewing_id, $buyer_details);
return Mspecs::get_api_client()->add_buyer_to_viewing($deal->mspecs_id, $viewing_id, $buyer_details);
}

/**
Expand All @@ -272,7 +272,7 @@ function mspecs_add_buyer_to_viewing_slot($deal, $viewing_id, $slot_id, $buyer_d
$deal = mspecs_get_deal($deal);
if(!$deal) return null;

return Mspecs::get_api_client()->add_buyer_to_viewing_slot($deal->ID, $viewing_id, $slot_id, $buyer_details);
return Mspecs::get_api_client()->add_buyer_to_viewing_slot($deal->mspecs_id, $viewing_id, $slot_id, $buyer_details);
}

/*
Expand Down Expand Up @@ -436,4 +436,4 @@ function mspecs_prefixed_post_metas(){
* Filters the Mspecs meta keys that may conflict with other WordPress meta keys
*/
return apply_filters('mspecs_prefixed_post_metas', array('id'));
}
}

0 comments on commit b5263b7

Please sign in to comment.