fixes for internal mxisd endpoints
This commit is contained in:
@@ -22,7 +22,7 @@ try {
|
||||
$res2 = array();
|
||||
switch ($lookup["medium"]) {
|
||||
case "email":
|
||||
$res2 = $mx_db->searchUserByEmail($input["lookup"]["address"]);
|
||||
$res2 = $mx_db->searchUserByEmail($lookup["address"]);
|
||||
if (!empty($res2)) {
|
||||
array_push($response["lookup"], [
|
||||
"medium" => $lookup["medium"],
|
||||
@@ -34,6 +34,7 @@ try {
|
||||
]
|
||||
);
|
||||
}
|
||||
break;
|
||||
case "msisdn":
|
||||
error_log("sb requested a bulk lookup for msisdn");
|
||||
break;
|
||||
@@ -46,4 +47,4 @@ try {
|
||||
$response["error"] = $e->getMessage();
|
||||
}
|
||||
print (json_encode($response, JSON_PRETTY_PRINT) . "\n");
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user