mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 01:11:23 +03:00
@@ -120,9 +120,10 @@ module.exports = {
|
|||||||
|
|
||||||
const importLabels = async () => {
|
const importLabels = async () => {
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
getUsedTrelloLabels().map(async (trelloLabel) => {
|
getUsedTrelloLabels().map(async (trelloLabel, index) => {
|
||||||
const plankaLabel = await Label.create({
|
const plankaLabel = await Label.create({
|
||||||
boardId: inputs.board.id,
|
boardId: inputs.board.id,
|
||||||
|
position: 65535 * (index + 1), // TODO: move to config
|
||||||
name: trelloLabel.name || null,
|
name: trelloLabel.name || null,
|
||||||
color: getPlankaLabelColor(trelloLabel.color),
|
color: getPlankaLabelColor(trelloLabel.color),
|
||||||
}).fetch();
|
}).fetch();
|
||||||
|
|||||||
Reference in New Issue
Block a user