Skip to content

Commit

Permalink
fix: add type field to GameExtendedAchievementEntity (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Mar 23, 2024
1 parent d0c04c1 commit a93fa30
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions src/achievement/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./achievement-type.model";
export * from "./achievement-unlock-entity.model";
export * from "./get-achievement-unlocks-response.model";
2 changes: 1 addition & 1 deletion src/game/getGameExtended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import type { GameExtended, GetGameExtendedResponse } from "./models";
*/
export const getGameExtended = async (
authorization: AuthObject,
payload: { gameId: ID; isRequestingUnofficialAchievements: boolean }
payload: { gameId: ID; isRequestingUnofficialAchievements?: boolean }
): Promise<GameExtended> => {
const { gameId, isRequestingUnofficialAchievements } = payload;

Expand Down
3 changes: 3 additions & 0 deletions src/game/models/game-extended-achievement-entity.model.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { AchievementType } from "../../achievement";

export interface GameExtendedAchievementEntity {
id: number;
numAwarded: number;
Expand All @@ -12,4 +14,5 @@ export interface GameExtendedAchievementEntity {
badgeName: string;
displayOrder: number;
memAddr: string;
type: AchievementType;
}
2 changes: 1 addition & 1 deletion src/user/models/dated-user-achievement.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AchievementType } from "./achievement-type.model";
import type { AchievementType } from "../../achievement";

export type DatedUserAchievement = {
date: string;
Expand Down
2 changes: 1 addition & 1 deletion src/user/models/dated-user-achievements-response.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AchievementType } from "./achievement-type.model";
import type { AchievementType } from "../../achievement";

interface DatedUserAchievementResponseEntity {
Date: string;
Expand Down
1 change: 0 additions & 1 deletion src/user/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./achievement-type.model";
export * from "./award-type.model";
export * from "./dated-user-achievement.model";
export * from "./dated-user-achievements-response.model";
Expand Down

0 comments on commit a93fa30

Please sign in to comment.