fix(server): ensure selfhost admin created after all data migrated (#6163)

fix #6154 

cp to canary
This commit is contained in:
liuyi
2024-03-18 11:40:14 +08:00
committed by LongYinan
parent 58c81dd1ac
commit 268ca03f62
2 changed files with 3 additions and 1 deletions
@@ -23,6 +23,8 @@ export async function collectMigrations(): Promise<Migration[]> {
)
.map(desc => join(folder, desc));
migrationFiles.sort((a, b) => a.localeCompare(b));
const migrations: Migration[] = await Promise.all(
migrationFiles.map(async file => {
return import(pathToFileURL(file).href).then(mod => {