Skip to content

A local-first personal finance app

Fix docker images (#7146)

Michael Clarkb72712460384
diff --git a/packages/sync-server/src/migrations.ts b/packages/sync-server/src/migrations.ts
index a5c22d7eb0..d57ecc40c4 100644
--- a/packages/sync-server/src/migrations.ts
+++ b/packages/sync-server/src/migrations.ts
@@ -28,7 +28,9 @@ export async function run(direction: 'up' | 'down' = 'up'): Promise<void> {
> = {};
for (const f of files
- .filter(f => f.endsWith('.js') || f.endsWith('.ts'))
+ .filter(
+ f => (f.endsWith('.js') || f.endsWith('.ts')) && !f.endsWith('.d.ts'),
+ )
.sort()) {
migrationsModules[f] = await import(
pathToFileURL(path.join(migrationsDir, f)).href
diff --git a/upcoming-release-notes/7146.md b/upcoming-release-notes/7146.md
new file mode 100644
index 0000000000..c1c1f21b3b
--- /dev/null
+++ b/upcoming-release-notes/7146.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MikesGlitch]
+---
+
+Fix migrations retrieval when running the docker images