Skip to content

Commit

Permalink
Fixed a function name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeychernyshev committed Aug 26, 2024
1 parent ae9aa74 commit 22b22d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/generateMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
2 changes: 1 addition & 1 deletion src/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(), {
Expand Down

0 comments on commit 22b22d1

Please sign in to comment.