From a9c16d9509ece31d5a88173753965d2733249bb3 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Mon, 18 May 2026 09:25:55 -0400 Subject: [PATCH] fix(capture): wire bootstrapAutoStart() + add missing captureManager/MAM_API_URL/server (regression from earlier conflict resolution) --- services/capture/src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/capture/src/index.js b/services/capture/src/index.js index 6fa7d1d..09bccd1 100644 --- a/services/capture/src/index.js +++ b/services/capture/src/index.js @@ -2,11 +2,13 @@ import express from 'express'; import cors from 'cors'; import dotenv from 'dotenv'; import captureRoutes from './routes/capture.js'; +import captureManager from './capture-manager.js'; dotenv.config(); const app = express(); const PORT = process.env.PORT || 3001; +const MAM_API_URL = process.env.MAM_API_URL || 'http://mam-api:3000'; // Middleware app.use(cors()); @@ -21,8 +23,9 @@ app.get('/health', (req, res) => { app.use('/capture', captureRoutes); // Start server -app.listen(PORT, () => { +const server = app.listen(PORT, () => { console.log(`Wild Dragon Capture Service listening on port ${PORT}`); + bootstrapAutoStart(); }); async function bootstrapAutoStart() {