Fix parameters lol
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Amy 2022-09-02 00:37:02 -04:00
parent 35dc436533
commit d6b0767326
1 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,10 @@ export function getCurrentTermYear() {
}
export function getPreviousTermYear() {
const result = getTermYear({ goBackwards: true, skipCurrent: true }).next();
const result = getTermYear(getCurrentTermYear(), {
goBackwards: true,
skipCurrent: true,
}).next();
if (result.done === true) {
throw new Error("Cannot get previous term. Iterator is done.");