🐛 Fix issue with old migration and add migration for location

This commit is contained in:
Meier Lukas
2023-06-11 00:33:28 +02:00
parent f033697579
commit c7e066392f
6 changed files with 458 additions and 399 deletions

View File

@@ -38,7 +38,7 @@ export async function getServerSideProps({
};
}
const config = getFrontendConfig(configName as string);
const config = await getFrontendConfig(configName as string);
setCookie('config-name', configName, {
req,
res,

View File

@@ -47,7 +47,7 @@ export async function getServerSideProps({
}
const translations = await getServerSideTranslations(dashboardNamespaces, locale, req, res);
const config = getFrontendConfig(configName as string);
const config = await getFrontendConfig(configName as string);
return {
props: {