return;
}, data => {
- return data.html.replace(/{ACCOUNT_ID}/g, data.account_id);
+ if(data) {
+ return data.html.replace(/{ACCOUNT_ID}/g, data.account_id);
+ }
+ else {
+ return data;
+ }
});
apiPost('/accounts/:account_id/feeds', {auth: true}, async (req, res): Promise<any> => {