Skip to content

Commit 0561ec2

Browse files
committed
feat: staging.stanfurdtime.com
1 parent 3e73273 commit 0561ec2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: packages/client/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function App() {
3838
const [query, setQuery] = useState("");
3939

4040
const { data, loading } = useQuery<CoursesResponse>(GET_COURSES);
41-
const courses = useMemo(() => data?.courseList, [data]);
41+
const courses = useMemo(() => data?.courses, [data]);
4242

4343
const parsedSample = useMemo(() => {
4444
if (!sample || !courses) return;

Diff for: packages/client/src/lib/api.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { gql } from "@apollo/client";
22

33
export const API_BASE = "/api";
4-
export const GRAPHQL_BASE = "https://stanfurdtime.com/api/graphql";
4+
export const GRAPHQL_BASE = "https://staging.stanfurdtime.com/api/graphql";
55

66
export interface Match {
77
subject: string;
@@ -79,12 +79,12 @@ export interface Course {
7979
}
8080

8181
export interface CoursesResponse {
82-
courseList: Course[];
82+
courses: Course[];
8383
}
8484

8585
export const GET_COURSES = gql`
8686
query GetCourses {
87-
courseList {
87+
courses {
8888
subject
8989
number
9090
title

0 commit comments

Comments
 (0)