From 96e960454305d847deb289ed12304b86bbccc8ef Mon Sep 17 00:00:00 2001 From: John Smith Date: Tue, 3 Dec 2024 16:09:21 +1030 Subject: [PATCH] Update index.ts Co-authored-by: Nadeesha Cabral --- examples/pg-stat-analysis/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pg-stat-analysis/src/index.ts b/examples/pg-stat-analysis/src/index.ts index e6b9c641..e30fac77 100644 --- a/examples/pg-stat-analysis/src/index.ts +++ b/examples/pg-stat-analysis/src/index.ts @@ -2,7 +2,7 @@ import { readFileSync, writeFileSync, existsSync } from 'fs'; import { Inferable } from 'inferable'; import { z } from 'zod'; -const HISTORY_PATH = './history.json'; +const HISTORY_PATH = path.join(__dirname, 'history.json') if (!existsSync(HISTORY_PATH)) { writeFileSync(HISTORY_PATH, JSON.stringify({ suggestions: [] }));