Skip to content

Commit ff16bfa

Browse files
committed
fix: ensure options are properly passed
1 parent b4790e8 commit ff16bfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controllers/threading/threadHandler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,16 @@ export async function runTask(req: Request, res: Response, route: string, useBul
231231
options: {
232232
logLevel: (req.body as TrapiQuery).log_level || (req.query.log_level as string),
233233
submitter: (req.body as TrapiQuery).submitter,
234+
smartAPIID: req.params.smartAPIID,
235+
teamName: req.params.teamName,
234236
...req.query,
235237
},
236238
params: req.params,
237239
endpoint: req.originalUrl,
238240
traceparent: traceparent,
239241
tracestate: tracestate,
240242
},
241-
};
243+
} as TaskInfo;
242244

243245
if ((req.body as TrapiQuery)?.bypass_cache) {
244246
taskInfo.data.options.caching = false;

0 commit comments

Comments
 (0)