Extract "MetadataReader" functions

This commit is contained in:
schroda
2025-01-04 21:28:26 +01:00
parent b7971f5183
commit a51d81d267
6 changed files with 52 additions and 45 deletions

View File

@@ -8,7 +8,7 @@
import { APP_METADATA_KEY_PREFIX, METADATA_MIGRATIONS } from '@/modules/metadata/Metadata.constants.ts';
import { IMetadataMigration, Metadata } from '@/modules/metadata/Metadata.types.ts';
import { doesMetadataKeyExistIn, getMetadataKey } from '@/modules/metadata/services/MetadataReader.ts';
import { doesMetadataKeyExistIn, getMetadataKey } from '@/modules/metadata/Metadata.utils.ts';
export const getAppKeyPrefixForMigration = (migrationId: number): string => {
const appKeyPrefix = METADATA_MIGRATIONS.slice(0, migrationId)