Function renaming
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jared He 2021-08-17 13:53:45 -05:00
parent 7afb956009
commit 2798efc221
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import React from "react";
import { Link } from "../../../components/Link";
import { getYears, getTermsByYear } from "../../../lib/events";
import { getEventYears, getEventTermsByYear } from "../../../lib/events";
import styles from "./year.module.css";
@ -13,7 +13,7 @@ export async function getStaticPaths(): Promise<{
}[];
fallback: boolean;
}> {
const years = await getYears();
const years = await getEventYears();
const paths = years.map((curYear) => ({
params: { year: curYear },
}));
@ -38,7 +38,7 @@ export async function getStaticProps(context: Context): Promise<{
return {
props: {
year: context.params.year,
terms: await getTermsByYear(context.params.year),
terms: await getEventTermsByYear(context.params.year),
},
};
}