Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotomaspinheiro committed Dec 29, 2024
1 parent f5b73c1 commit 071b475
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ type UserData =
function gameQueryOptions(gameId: string, publisherId: string) {
return queryOptions({
queryKey: gameQueryKey(gameId, publisherId),
gcTime: 0,
async queryFn() {
const game = await getPublisherGame(publisherId, gameId);

const relatedGames = (
await getGames({
tagIds: game.tags.map((x) => x.id),
tagIds: game.tags.map((tag) => tag.id),
limit: 6,
})
).games.filter((game) => game.id != game.id);
Expand Down

0 comments on commit 071b475

Please sign in to comment.