mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-17 02:15: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;
|
||||
}
|
||||
|
||||
const tasks = [
|
||||
seedFoods(),
|
||||
seedUnits(),
|
||||
seedLabels(),
|
||||
];
|
||||
|
||||
await Promise.all(tasks);
|
||||
await seedLabels();
|
||||
await Promise.all([seedFoods(), seedUnits()]);
|
||||
}
|
||||
|
||||
async function submitCommonSettings() {
|
||||
|
||||
Reference in New Issue
Block a user