From 387e20309accacfb8ec26f4c4bfe2ea822457cb5 Mon Sep 17 00:00:00 2001 From: gaba Date: Tue, 13 Dec 2016 10:42:30 -0800 Subject: [PATCH] We already have the default for closedMessage to be null in the model. Removing the passing of a blank closedMEssage. --- client/coral-framework/actions/config.js | 2 +- routes/api/asset/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/coral-framework/actions/config.js b/client/coral-framework/actions/config.js index c2d4083b7..c88138534 100644 --- a/client/coral-framework/actions/config.js +++ b/client/coral-framework/actions/config.js @@ -48,6 +48,6 @@ export const updateOpenStatus = status => dispatch => { dispatch(updateOpenStream({closedAt: null})); } else { dispatch(closeStream()); - dispatch(updateOpenStream({closedAt: new Date().getTime(), closedMessage: ''})); + dispatch(updateOpenStream({closedAt: new Date().getTime()})); } }; diff --git a/routes/api/asset/index.js b/routes/api/asset/index.js index 26da92279..5aa9b8cc6 100644 --- a/routes/api/asset/index.js +++ b/routes/api/asset/index.js @@ -94,8 +94,8 @@ router.put('/:asset_id/status', (req, res, next) => { const id = req.params.asset_id; const { - closedAt = null, - closedMessage = null + closedAt, + closedMessage } = req.body; Asset