Prepping save file support
This commit is contained in:
@@ -7,12 +7,6 @@ import Error500, { Error500Props } from '../500';
|
||||
import { extendFragment, includeFragment } from '@/lib/fragment';
|
||||
import { Paginated, paginationQuery } from '@/lib/page';
|
||||
|
||||
type Game = {
|
||||
id: string;
|
||||
name: string;
|
||||
system: string;
|
||||
};
|
||||
|
||||
type PageProps = {
|
||||
games:Paginated<GameLight>|null;
|
||||
} | Error500Props;
|
||||
@@ -21,7 +15,9 @@ export const getServerSideProps: GetServerSideProps<PageProps> = async () => {
|
||||
try {
|
||||
const client = await apiClientGet();
|
||||
const res = await client.query<{ games:Paginated<GameLight> }>({
|
||||
variables: { },
|
||||
variables: {
|
||||
after: null,
|
||||
},
|
||||
query: gql`
|
||||
${includeFragment(GameLightFragment)}
|
||||
query getGames {
|
||||
|
||||
Reference in New Issue
Block a user