diff --git a/src/servers/membrane-orientation/web-api.ts b/src/servers/membrane-orientation/web-api.ts index bbdc2d7c8..ed2f8f15c 100644 --- a/src/servers/membrane-orientation/web-api.ts +++ b/src/servers/membrane-orientation/web-api.ts @@ -49,8 +49,7 @@ async function predictMembraneOrientation(req: express.Request, res: express.Res try { const ctx = { runtime: SyncRuntimeContext, assetManager }; - // Make sure this is a string, taking the first element if it's an array (which can happen if the query parameter is repeated) - const entryId = Array.isArray(req.params.id) ? req.params.id[0] : req.params.id; + const entryId = req.params.id; const assemblyId = req.query.assemblyId as string ?? '1'; const p = parseParams(req); ConsoleLogger.log('predictMembraneOrientation', `${entryId}-${assemblyId} with params: ${JSON.stringify(p)}`);