mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Fix variables in update-card, update dependencies. Closes #85
This commit is contained in:
parent
a4495f5c83
commit
5f2c24b428
8 changed files with 3209 additions and 4332 deletions
|
@ -106,11 +106,10 @@ module.exports = {
|
|||
}
|
||||
|
||||
if (!_.isNil(values.position)) {
|
||||
const cards = await sails.helpers.getCardsForList(
|
||||
values.listId || inputs.record.listId,
|
||||
inputs.record.id,
|
||||
);
|
||||
const boardId = values.boardId || inputs.record.boardId;
|
||||
const listId = values.listId || inputs.record.listId;
|
||||
|
||||
const cards = await sails.helpers.getCardsForList(listId, inputs.record.id);
|
||||
const { position, repositions } = sails.helpers.insertToPositionables(values.position, cards);
|
||||
|
||||
repositions.forEach(async ({ id, position: nextPosition }) => {
|
||||
|
@ -121,7 +120,7 @@ module.exports = {
|
|||
position: nextPosition,
|
||||
});
|
||||
|
||||
sails.sockets.broadcast(`board:${values.boardId || inputs.record.boardId}`, 'cardUpdate', {
|
||||
sails.sockets.broadcast(`board:${boardId}`, 'cardUpdate', {
|
||||
item: {
|
||||
id,
|
||||
position: nextPosition,
|
||||
|
|
601
server/package-lock.json
generated
601
server/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -43,7 +43,7 @@
|
|||
"dotenv-cli": "^4.0.0",
|
||||
"filenamify": "^4.2.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"knex": "^0.21.15",
|
||||
"knex": "^0.21.17",
|
||||
"lodash": "^4.17.20",
|
||||
"moment": "^2.29.1",
|
||||
"rimraf": "^3.0.2",
|
||||
|
@ -51,22 +51,22 @@
|
|||
"sails-hook-orm": "^3.0.1",
|
||||
"sails-hook-sockets": "^2.0.0",
|
||||
"sails-postgresql-redacted": "^1.0.2-9",
|
||||
"sharp": "^0.27.0",
|
||||
"sharp": "^0.27.1",
|
||||
"stream-to-array": "^2.3.0",
|
||||
"uuid": "^8.3.2",
|
||||
"validator": "^13.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "^4.2.0",
|
||||
"eslint": "^7.17.0",
|
||||
"chai": "^4.3.0",
|
||||
"eslint": "^7.19.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-config-prettier": "^7.1.0",
|
||||
"eslint-config-prettier": "^7.2.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-prettier": "^3.3.1",
|
||||
"mocha": "^8.2.1",
|
||||
"nodemon": "^2.0.7",
|
||||
"prettier": "2.2.1",
|
||||
"supertest": "^6.0.1"
|
||||
"supertest": "^6.1.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.10"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue