Skip to content

Commit

Permalink
feat: update board update route to accept disable_signature
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Jun 19, 2020
1 parent 1fe32a2 commit e82bd5a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/ept-boards/routes/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = {
viewable_by: Joi.number().allow(null),
postable_by: Joi.number().allow(null),
right_to_left: Joi.boolean().default(false),
disable_signature: Joi.boolean().default(false),
disable_post_edit: Joi.number().min(0).max(99999)
})).unique().min(1)
},
Expand All @@ -50,8 +51,12 @@ module.exports = {
handler: function(request) {
var boards = request.payload.map(function(board) {
// create each board
board.meta = { disable_post_edit: board.disable_post_edit };
board.meta = {
disable_post_edit: board.disable_post_edit,
disable_signature: board.disable_signature
};
delete board.disable_post_edit;
delete board.disable_signature;
return board;
});

Expand Down

0 comments on commit e82bd5a

Please sign in to comment.