mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 01:08:36 +08:00
We already have the default for closedMessage to be null in the model. Removing the passing of a blank closedMEssage.
This commit is contained in:
@@ -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()}));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user