diff --git a/server/src/services/adminReasonService/index.js b/server/src/services/adminReasonService/index.js index f690a875..1d609727 100644 --- a/server/src/services/adminReasonService/index.js +++ b/server/src/services/adminReasonService/index.js @@ -8,7 +8,7 @@ const logger = require('../../globals/logger').child('adminReasonService'); const { isAdmin } = require('../roleService'); const { publishEvent } = require('../eventBus'); -const DATA_DIR = path.join(__dirname, '..', '..', 'data'); +const DATA_DIR = path.join(__dirname, '..', '..', '..', 'data'); const STORE_PATH = path.join(DATA_DIR, 'admin-reason.json'); const MAX_REASON_LENGTH = 240; diff --git a/server/src/services/audioLevelsService/index.js b/server/src/services/audioLevelsService/index.js index ead4e050..98b7427b 100644 --- a/server/src/services/audioLevelsService/index.js +++ b/server/src/services/audioLevelsService/index.js @@ -12,7 +12,7 @@ const roverManager = require('../roverManager'); const { issueCommand } = require('../commandService'); const audioLevelsEvents = new EventEmitter(); -const DATA_DIR = path.join(__dirname, '..', '..', 'data'); +const DATA_DIR = path.join(__dirname, '..', '..', '..', 'data'); const STORE_PATH = path.join(DATA_DIR, 'audio-levels.json'); const config = loadConfig(); const configuredDefaults = config.audioLevels || {}; diff --git a/server/src/services/buttonBoxService/index.js b/server/src/services/buttonBoxService/index.js index cdbe769e..f7faab59 100644 --- a/server/src/services/buttonBoxService/index.js +++ b/server/src/services/buttonBoxService/index.js @@ -23,7 +23,7 @@ const { } = require('../homeAssistantService'); const { getRequestIp, isLocalNetwork, normalizeIp } = require('../../helpers/ipResolver'); -const DATA_DIR = path.join(__dirname, '..', '..', 'data'); +const DATA_DIR = path.join(__dirname, '..', '..', '..', 'data'); const STORE_PATH = path.join(DATA_DIR, 'buttonbox-state.json'); const BUTTON_COUNT = 4; const STORE_VERSION = 1; diff --git a/server/src/services/communityGoalService/index.js b/server/src/services/communityGoalService/index.js index 959efe21..b609ff4a 100644 --- a/server/src/services/communityGoalService/index.js +++ b/server/src/services/communityGoalService/index.js @@ -8,7 +8,7 @@ const logger = require('../../globals/logger').child('communityGoalService'); const { isAdmin } = require('../roleService'); const { publishEvent } = require('../eventBus'); -const DATA_DIR = path.join(__dirname, '..', '..', 'data'); +const DATA_DIR = path.join(__dirname, '..', '..', '..', 'data'); const STORE_PATH = path.join(DATA_DIR, 'community-goal.json'); const MAX_GOAL_LENGTH = 240; diff --git a/server/src/services/discordGuildStore/index.js b/server/src/services/discordGuildStore/index.js index 9e05caf1..8768be5a 100644 --- a/server/src/services/discordGuildStore/index.js +++ b/server/src/services/discordGuildStore/index.js @@ -5,7 +5,7 @@ const fs = require('fs'); const path = require('path'); const logger = require('../../globals/logger').child('discordGuildStore'); -const DATA_DIR = path.join(__dirname, '..', '..', 'data'); +const DATA_DIR = path.join(__dirname, '..', '..', '..', 'data'); const STORE_PATH = path.join(DATA_DIR, 'discord-guilds.json'); const VALID_MODES = new Set(['global', 'private']); diff --git a/server/src/services/replayEngineV2/index.js b/server/src/services/replayEngineV2/index.js index f370af01..a309369e 100644 --- a/server/src/services/replayEngineV2/index.js +++ b/server/src/services/replayEngineV2/index.js @@ -20,7 +20,7 @@ const sharp = require('sharp'); const execFileAsync = promisify(execFile); const FFMPEG_BIN = process.env.FFMPEG_BIN || 'ffmpeg'; -const SEGMENT_ROOT = path.resolve(__dirname, '..', '..', 'data', 'replay-segments'); +const SEGMENT_ROOT = path.resolve(__dirname, '..', '..', '..', 'data', 'replay-segments'); const SEGMENT_SECONDS = Math.max(1, Number.parseInt(process.env.REPLAY_SEGMENT_SECONDS || '1', 10)); const BUFFER_SECONDS = Math.max(20, Number.parseInt(process.env.REPLAY_BUFFER_SECONDS || '45', 10)); const CLEANUP_INTERVAL_MS = 10_000; diff --git a/server/src/services/verificationService/index.js b/server/src/services/verificationService/index.js index 56e7a835..b6b4e4d0 100644 --- a/server/src/services/verificationService/index.js +++ b/server/src/services/verificationService/index.js @@ -20,7 +20,7 @@ const { createJsonStore, } = require('../identityService'); -const DATA_DIR = path.join(__dirname, '..', '..', 'data'); +const DATA_DIR = path.join(__dirname, '..', '..', '..', 'data'); const STORE_PATH = path.join(DATA_DIR, 'verified-users.json'); const verificationEvents = new EventEmitter();