Skip to content

Commit

Permalink
Add missing return fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Dec 5, 2023
1 parent 1b27781 commit d721a1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/logic/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,12 @@ export class ApiClass {
}
}

if (playerData) {
if (player && playerData) {
return {
Status: 200,
Body: {
...player,
timeStamp: player.updatedAt,
dbid: player.dbid,
playerData
}
};
Expand Down

0 comments on commit d721a1d

Please sign in to comment.