Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions server/server/internal/metadata/steam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ interface SteamAppDetailsLarge extends SteamAppDetailsSmall {
ordinal: number;
}[];
};
full_description: string;
// Can be undefined if the game is not available in the country of the request
full_description: string | undefined;
}

interface SteamAppDetailsPackage {
Expand Down Expand Up @@ -418,7 +419,7 @@ export class SteamProvider implements MetadataProvider {
);
} else {
context?.logger.info("Using fallback description from basic game info");
description = currentGame.full_description;
description = currentGame.full_description ?? "";
}

context?.progress(90);
Expand Down Expand Up @@ -485,7 +486,7 @@ export class SteamProvider implements MetadataProvider {
bannerId: banner,
coverId: cover,
images,
} as GameMetadata;
} satisfies GameMetadata;
}

async fetchCompany({
Expand Down
Loading