Skip to content

Commit

Permalink
use __dirname/cache.json as cache path
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Le <[email protected]>
  • Loading branch information
grqz and Brainicism committed Sep 14, 2024
1 parent 2cba942 commit 9ac4a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/generate_once.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Command } from "@commander-js/extra-typings";
import * as fs from "fs";
import * as path from "path";

const CACHE_PATH = path.resolve(process.cwd(), "cache.json");
const program = new Command()
.option("-v, --visitor-data <visitordata>")
.option("-d, --data-sync-id <data-sync-id>")
Expand All @@ -13,6 +12,7 @@ program.parse();
const options = program.opts();

(async () => {
const CACHE_PATH = path.resolve(__dirname, "cache.json");
const dataSyncId = options.dataSyncId;
const visitorData = options.visitorData;
const verbose = options.verbose || false;
Expand Down

0 comments on commit 9ac4a39

Please sign in to comment.