1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-23 15:19:44 +02:00

Add start script for Docker image, pre-commit lint check, package.json scripts cleanup

This commit is contained in:
Maksim Eltyshev 2020-04-24 21:44:54 +05:00
parent 73bd7aab89
commit 5481ccb91f
11 changed files with 1236 additions and 11 deletions

View file

@ -28,6 +28,11 @@ module.exports = {
},
async fn(inputs, exits) {
// TODO: allow over HTTP without subscription
if (!this.req.isSocket) {
return this.res.badRequest();
}
const project = await Project.findOne(inputs.projectId);
if (!project) {
@ -38,6 +43,8 @@ module.exports = {
const board = await sails.helpers.createBoard(project, values, this.req);
sails.sockets.join(this.req, `board:${board.id}`); // TODO: only when subscription needed
return exits.success({
item: board,
included: {