Fix execution details endpoint - remove reference to deleted activeExecutions
This commit is contained in:
@@ -983,15 +983,12 @@ app.get('/api/executions/:id', authenticateSSO, async (req, res) => {
|
|||||||
if (rows.length === 0) {
|
if (rows.length === 0) {
|
||||||
return res.status(404).json({ error: 'Not found' });
|
return res.status(404).json({ error: 'Not found' });
|
||||||
}
|
}
|
||||||
|
|
||||||
const execution = rows[0];
|
const execution = rows[0];
|
||||||
const state = activeExecutions.get(req.params.id);
|
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
...execution,
|
...execution,
|
||||||
logs: JSON.parse(execution.logs || '[]'),
|
logs: JSON.parse(execution.logs || '[]')
|
||||||
waiting_for_input: state?.waitingForInput || false,
|
|
||||||
prompt: state?.promptData || null
|
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
res.status(500).json({ error: error.message });
|
res.status(500).json({ error: error.message });
|
||||||
|
|||||||
Reference in New Issue
Block a user