chore: change comment

This commit is contained in:
Marc-Roig 2023-04-29 12:01:18 +02:00
parent ff33454691
commit 57ebe9c3e8
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249

View File

@ -3,7 +3,7 @@
const { STAGE_DEFAULT_COLOR } = require('../constants/workflows');
async function migrateReviewWorkflowStagesColor({ oldContentTypes, contentTypes }) {
// Check if stages table name has a color attribute
// Look for CT's color attribute
const hadColor = !!oldContentTypes?.['admin::workflow-stage']?.attributes?.color;
const hasColor = !!contentTypes['admin::workflow-stage']?.attributes?.color;