fix: re-enable metadata providers

This commit is contained in:
DecDuck
2025-03-11 11:33:05 +11:00
parent 88aaa2a71b
commit 9608cc9742
3 changed files with 20 additions and 2 deletions

View File

@ -197,13 +197,13 @@ const router = useRouter();
const importLoading = ref(false);
const importError = ref<string | undefined>();
async function importGame(metadata: boolean) {
if (!metadataResults.value) return;
if (!metadataResults.value && metadata) return;
const game = await $fetch("/api/v1/admin/import/game", {
method: "POST",
body: {
path: games.unimportedGames[currentlySelectedGame.value],
metadata: metadata ? metadataResults.value[currentlySelectedMetadata.value] : undefined,
metadata: metadata && metadataResults.value ? metadataResults.value[currentlySelectedMetadata.value] : undefined,
},
});