7 lines
201 B
JavaScript
7 lines
201 B
JavaScript
|
|
||
|
|
||
|
let response = JSON.parse($response.body);
|
||
|
if (response.biz) {
|
||
|
response.biz = Object.values(response.biz).filter(item => !(item["type"]=="promoted"));
|
||
|
}
|
||
|
$done({ body: JSON.stringify(response) });
|