|
@@ -256,9 +256,11 @@ if (Meteor.isServer) {
|
|
|
try {
|
|
|
Authentication.checkUserId( req.userId);
|
|
|
const paramBoardId = req.params.boardId;
|
|
|
+ const board = Boards.findOne(paramBoardId);
|
|
|
const id = Swimlanes.insert({
|
|
|
title: req.body.title,
|
|
|
boardId: paramBoardId,
|
|
|
+ sort: board.swimlanes().count(),
|
|
|
});
|
|
|
JsonRoutes.sendResult(res, {
|
|
|
code: 200,
|