Skip to content

Commit

Permalink
fix: correct game query key (#98)
Browse files Browse the repository at this point in the history
## Summary

Fix game query key.
  • Loading branch information
joaotomaspinheiro authored Jan 19, 2025
1 parent 9895167 commit 755eeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/routes/distribute/_layout/games_/$gameId/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { getPublisherGame } from "@/lib/api";
import { decodeTokenPayload, getToken } from "@/lib/auth";
import { BadRequest, NotFound } from "@/lib/errors";
import { gameQueryKey } from "@/lib/query-keys";
import { distributeGameQueryKey } from "@/lib/query-keys";
import { applyTax } from "@/lib/utils";

/**
Expand All @@ -27,7 +27,7 @@ function publisherGameQueryOptions(gameId: string) {
const publisherId = payload.sub;

return queryOptions({
queryKey: gameQueryKey(gameId, publisherId),
queryKey: distributeGameQueryKey(gameId, publisherId),
async queryFn() {
return await getPublisherGame(publisherId, gameId);
},
Expand Down

0 comments on commit 755eeae

Please sign in to comment.