Skip to main content
Glama
v29.ts914 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { WithId } from '@medplum/core'; import type { AsyncJob, ResourceType } from '@medplum/fhirtypes'; import type { ReindexPostDeployMigration } from '../../workers/reindex'; import { prepareReindexJobData, ReindexJob } from '../../workers/reindex'; // Repository.VERSION was bumped to 11 for the ConceptMapping lookup table, // so reindex all resources with a lower version. const maxResourceVersion = 10; export const migration: ReindexPostDeployMigration = { type: 'reindex', prepareJobData(asyncJob: WithId<AsyncJob>) { const resourceTypes: ResourceType[] = ['ConceptMap']; return prepareReindexJobData(resourceTypes, asyncJob.id, undefined, maxResourceVersion); }, run: async (repo, job, jobData) => { return new ReindexJob(repo).execute(job, jobData); }, };

Latest Blog Posts

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/medplum/medplum'

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