Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

450 B
Raw Blame
import { isNil } from '@activepieces/core-utils'
import { FlowVersion } from '@activepieces/shared'
import { Migration } from '.'

export const migrateV13AddNotes: Migration = {
    targetSchemaVersion: '13',
    migrate: async (flowVersion: FlowVersion): Promise<FlowVersion> => {
        return {
            ...flowVersion,
            notes: isNil(flowVersion.notes) ? [] : flowVersion.notes,
            schemaVersion: '14',
        }
    },
}