a cache for slack profile pictures and emojis

Fix circular dependencies in migration system

- Remove MigrationManager export from index.ts
- Add comment explaining why migrations are defined in two places
- Keep migrations defined in both cache.ts and index.ts to avoid circular imports

🦊 Generated with Crush
Co-Authored-By: Crush <crush@charm.land>

dunkirk.sh 87864633 d4a5fd0b

verified
Changed files
+6 -4
src
migrations
+3
src/cache.ts
··· 150 150 */ 151 151 private async runMigrations() { 152 152 try { 153 + // Define migrations directly here to avoid circular dependencies 154 + // Note: We define migrations both here and in migrations/index.ts 155 + // This is intentional to prevent circular imports 153 156 const migrations = [ 154 157 endpointGroupingMigration, 155 158 logGroupingMigration
+3 -4
src/migrations/index.ts
··· 1 1 import { endpointGroupingMigration } from "./endpointGroupingMigration"; 2 2 import { logGroupingMigration } from "./logGroupingMigration"; 3 3 import { Migration } from "./types"; 4 - import { MigrationManager } from "./migrationManager"; 5 4 6 5 // Export all migrations 7 - export const migrations: Migration[] = [ 6 + export const migrations = [ 8 7 endpointGroupingMigration, 9 8 logGroupingMigration, 10 9 // Add new migrations here 11 10 ]; 12 11 13 - // Export the migration manager and types 14 - export { MigrationManager, Migration }; 12 + // Export the migration types 13 + export { Migration };