fix: request body check

This commit is contained in:
Kevin Franklin Kim 2024-12-11 21:38:44 +01:00
parent ce0258ff92
commit aa27edb0f4
No known key found for this signature in database

View File

@ -45,6 +45,10 @@ const logToConsole = require('logToConsole');
const getRequestBody = require('getRequestBody');
const requestBody = getRequestBody();
if (requestBody === '') {
return null;
}
const payload = JSON.parse(requestBody);
const value = payload[data.key] || null;