Fix debug messages
This commit is contained in:
parent
29089bc43f
commit
4c02282549
@ -203,7 +203,7 @@ async function handleRequest(req, res, payloadHandler) {
|
|||||||
|
|
||||||
docData.totalCount = docData.totalCount + 1;
|
docData.totalCount = docData.totalCount + 1;
|
||||||
|
|
||||||
if (debug) console.log('Sending payload', JSON.stringify(payload));
|
if (debug()) console.log('Sending payload', JSON.stringify(payload));
|
||||||
|
|
||||||
var messageId;
|
var messageId;
|
||||||
try {
|
try {
|
||||||
@ -220,7 +220,7 @@ async function handleRequest(req, res, payloadHandler) {
|
|||||||
if (updateRateLimits) {
|
if (updateRateLimits) {
|
||||||
await writeRateLimits(ref, docExists, docData, res);
|
await writeRateLimits(ref, docExists, docData, res);
|
||||||
} else {
|
} else {
|
||||||
if (debug) console.log('Not updating rate limits because notification is critical or command');
|
if (debug()) console.log('Not updating rate limits because notification is critical or command');
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.status(201).json({
|
return res.status(201).json({
|
||||||
|
Reference in New Issue
Block a user