mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 07:42:40 +10:00
in progress igdb
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user