1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 12:49:43 +02:00

fix: Fix import from Trello

Closes #397
This commit is contained in:
Maksim Eltyshev 2023-02-20 11:24:17 +01:00
parent 14961b6621
commit a8b7b4dd26

View file

@ -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();