Compare commits
No commits in common. "main" and "agent/tars-dashboard-bugs" have entirely different histories.
main
...
agent/tars
2 changed files with 2 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,5 +3,3 @@ node_modules/
|
|||
*.log
|
||||
.env
|
||||
*.bak*
|
||||
data/
|
||||
data/
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const HOST = process.env.HOST || '127.0.0.1';
|
|||
const PORT = process.env.PORT || 3030;
|
||||
|
||||
// ─── Paths ───
|
||||
const DATA_DIR = process.env.DATA_DIR || path.join(__dirname, 'data');
|
||||
const DATA_DIR = path.join(__dirname, 'data');
|
||||
const USERS_FILE = path.join(DATA_DIR, 'users.json');
|
||||
const SERVICES_CACHE = path.join(DATA_DIR, 'services-cache.json');
|
||||
const TOKENS_FILE = path.join(DATA_DIR, 'tokens.json');
|
||||
|
|
@ -184,6 +184,7 @@ async function syncServices() {
|
|||
|
||||
// Build service map from inventory repos
|
||||
const newMap = {};
|
||||
const STATE_FILE = path.join(DATA_DIR, '../api/inventory-data.json');
|
||||
|
||||
// Also try to get the inventory state which has service URLs
|
||||
let stateData = {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue