From 22b22d1c4018043b6c13611f19ada3cd538dd7cc Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Sun, 25 Aug 2024 21:22:20 -0400 Subject: [PATCH] Fixed a function name typo --- src/generateMap.js | 4 ++-- src/history.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(), {