in progress igdb

This commit is contained in:
Huskydog9988
2025-03-12 14:19:33 -04:00
parent 2b7bc6965d
commit 2755aa472b
5 changed files with 419 additions and 13 deletions

View File

@ -1,5 +1,5 @@
import { Developer, MetadataSource, Publisher } from "@prisma/client";
import { MetadataProvider, MissingMetadataProviderApiKey } from ".";
import { MetadataProvider, MissingMetadataProviderConfig } from ".";
import {
GameMetadataSearchResult,
_FetchGameMetadataParams,
@ -81,7 +81,11 @@ export class GiantBombProvider implements MetadataProvider {
constructor() {
const apikey = process.env.GIANT_BOMB_API_KEY;
if (!apikey) throw new MissingMetadataProviderApiKey(this.name());
if (!apikey)
throw new MissingMetadataProviderConfig(
"GIANT_BOMB_API_KEY",
this.name()
);
this.apikey = apikey;