We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edaf2fb commit 0b078faCopy full SHA for 0b078fa
src/routes/bot.js
@@ -426,8 +426,8 @@ async function update(req, res) {
426
);
427
} else {
428
try {
429
- if (data.endDate === "") data.endDate = null;
430
- if (data.startDate === "") data.startDate = null;
+ if (data.endDate === undefined || data.endDate === "") data.endDate = null;
+ if (data.startDate === undefined || data.startDate === "") data.startDate = null;
431
// Loop over transformers to verify if they exist or not.
432
const userSegments = data.users;
433
let isValidUserSegment = true;
0 commit comments