diff --git a/src/generateMap.js b/src/generateMap.js index 9cd1af1..e21c974 100644 --- a/src/generateMap.js +++ b/src/generateMap.js @@ -4,7 +4,7 @@ import fs from "fs"; // our own modules import { generateMapHTML } from "./map.js"; import { getGameConfig } from "./gameConfig.js"; -import { getFullHistory, getLastCommitistory } from "./history.js"; +import { getFullHistory, getLastCommit } from "./history.js"; // Constants const mapOutput = "index.html"; @@ -34,7 +34,7 @@ console.log("[Game Configuration]\n", gameConfig); const history = gameConfig.createTimelapse ? await getFullHistory(gameConfig, SCC, folder) - : await getLastCommitistory(gameConfig, SCC, folder); + : await getLastCommit(gameConfig, SCC, folder); const mapHTML = generateMapHTML(gameConfig, history); fs.writeFileSync(mapOutput, mapHTML); diff --git a/src/history.js b/src/history.js index 4edc3d4..fe694bb 100644 --- a/src/history.js +++ b/src/history.js @@ -127,7 +127,7 @@ export async function getFullHistory(gameConfig, SCC, folder) { * @param {*} gameConfig * @returns */ -export async function getLastCommitistory(gameConfig, SCC, folder) { +export async function getLastCommit(gameConfig, SCC, folder) { const history = new Map(); history.set(new Date().toDateString(), {