Skip to main content
Glama

mcp-google-sheets

flow-version-migration.service.ts1.19 kB
import { flowMigrations, FlowVersion, LATEST_SCHEMA_VERSION, spreadIfDefined } from '@activepieces/shared' import { system } from '../../helper/system/system' import { flowVersionRepo } from './flow-version.service' const log = system.globalLogger() export const flowVersionMigrationService = { async migrate(flowVersion: FlowVersion): Promise<FlowVersion> { // Early exit if already at latest version if (flowVersion.schemaVersion === LATEST_SCHEMA_VERSION) { return flowVersion } log.info('Starting flow version migration') const migratedFlowVersion: FlowVersion = flowMigrations.apply(flowVersion) if (flowVersion.schemaVersion === migratedFlowVersion.schemaVersion) { return flowVersion } await flowVersionRepo().update(flowVersion.id, { schemaVersion: migratedFlowVersion.schemaVersion, ...spreadIfDefined('trigger', migratedFlowVersion.trigger), connectionIds: migratedFlowVersion.connectionIds, agentIds: migratedFlowVersion.agentIds, }) log.info('Flow version migration completed') return migratedFlowVersion }, }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server