fix: Fix import from Trello

Closes #397
pull/404/head
Maksim Eltyshev 3 years ago
parent b880559134
commit 8012f5319c

@ -120,9 +120,10 @@ module.exports = {
const importLabels = async () => {
return Promise.all(
getUsedTrelloLabels().map(async (trelloLabel) => {
getUsedTrelloLabels().map(async (trelloLabel, index) => {
const plankaLabel = await Label.create({
boardId: inputs.board.id,
position: 65535 * (index + 1), // TODO: move to config
name: trelloLabel.name || null,
color: getPlankaLabelColor(trelloLabel.color),
}).fetch();

Loading…
Cancel
Save