Skip to content

Commit

Permalink
🐛 Force update summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 3, 2020
1 parent d036dd9 commit 2d3afbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { sendNotification } from "./notifications";
import { generateSummary } from "./summary";

export const update = async (shouldCommit = false) => {
// TODO REMOVE THIS LINE
shouldCommit = true;

const config = safeLoad(await readFile(join(".", ".upptimerc.yml"), "utf8")) as UpptimeConfig;
const owner = config.owner;
const repo = config.repo;
Expand Down Expand Up @@ -193,7 +196,9 @@ export const update = async (shouldCommit = false) => {
}
push();

if (hasDelta) generateSummary();
// if (hasDelta) generateSummary();
// TODO REMOVE THIS LINE
generateSummary();
};

const curl = (url: string, method = "GET"): Promise<{ httpCode: number; totalTime: number }> =>
Expand Down

0 comments on commit 2d3afbc

Please sign in to comment.