Add explicit journal logs for Telegram prepay lead sends
This commit is contained in:
@@ -134,6 +134,11 @@ async function sendTelegramPrepayLead(lead) {
|
|||||||
headers: { 'content-type': 'application/x-www-form-urlencoded' },
|
headers: { 'content-type': 'application/x-www-form-urlencoded' },
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
|
if (res.ok) {
|
||||||
|
console.log(`[vk-endpoint] prepay lead sent user=${lead.user_id || '-'} email=${lead.email || '-'} phone=${lead.phone || '-'}`);
|
||||||
|
} else {
|
||||||
|
console.log(`[vk-endpoint] prepay lead send failed user=${lead.user_id || '-'} status=${res.status}`);
|
||||||
|
}
|
||||||
return res.ok;
|
return res.ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user