From 69736f2e25e8f318a10dcad524927440c5bacca9 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Thu, 30 May 2024 10:30:15 +0200 Subject: [PATCH] Fix listing of terminals --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 512ad78..79a63bf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,7 +52,7 @@ const terminalsRoutesPlugin: JupyterLiteServerPlugin = { // GET /api/terminals - List the running terminals app.router.get('/api/terminals', async (req: Router.IRequest) => { - const res = terminals.list(); + const res = await terminals.list(); // Should return last_activity for each too, return new Response(JSON.stringify(res)); });