Skip to content

Commit

Permalink
fix wrong response type
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Apr 23, 2024
1 parent e40f00d commit 9db9bc3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/services/Steam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ type GetPublishedFileDetails = {
};

type GetPublishedFileDetailsResponse = {
result: number;
resultcount: number;
publishedfiledetails: [GetPublishedFileDetails];
response: {
result: number;
resultcount: number;
publishedfiledetails: [GetPublishedFileDetails];
};
};

type SummariesResponse = {
Expand Down Expand Up @@ -132,7 +134,7 @@ export class Steam extends Service {
.catch(() => {
return { data: undefined };
})
).data;
).data?.response;
}

async getUserAvatar(steamId64: string): Promise<any> {
Expand Down

0 comments on commit 9db9bc3

Please sign in to comment.