Skip to content

Commit

Permalink
Fixed last_update_at file path error
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Jun 19, 2024
1 parent 36e27b5 commit b316d13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion last_updated_at.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1693213611
1718776189
3 changes: 2 additions & 1 deletion scripts/wiki/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import dayjs from "dayjs";
const fs = require("fs");
const path = require("path");

const projectRoot = path.resolve(__dirname, "..", "..", "..");
const projectRoot = path.resolve(__dirname, "..", "..");
const forceRefresh = process.env.FORCE_UPDATE === "true";

export async function fetchLastUpdatedValue(content_updated_at = 0) {
const tmpFilePath = path.join(projectRoot, "last_updated_at.txt");
console.log('fetchLastUpdatedValue-11', tmpFilePath)

try {
// content_updated_at empty mean's need read prev last updated_at value
Expand Down

0 comments on commit b316d13

Please sign in to comment.