mirror of
https://github.com/foomo/sesamy-cli.git
synced 2025-10-16 12:35:36 +00:00
fix: request body check
This commit is contained in:
parent
ce0258ff92
commit
aa27edb0f4
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user