mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-17 18:35:34 -04:00
fix: seed labels before foods in setup wizard to prevent race condition (#7429)
Co-authored-by: xenov <redacted> Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
@@ -457,13 +457,8 @@ async function seedData() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const tasks = [
|
await seedLabels();
|
||||||
seedFoods(),
|
await Promise.all([seedFoods(), seedUnits()]);
|
||||||
seedUnits(),
|
|
||||||
seedLabels(),
|
|
||||||
];
|
|
||||||
|
|
||||||
await Promise.all(tasks);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function submitCommonSettings() {
|
async function submitCommonSettings() {
|
||||||
|
|||||||
Reference in New Issue
Block a user