From c9db1db7561dd16df28021bed99d77beed78ee96 Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:14:49 -0400 Subject: [PATCH] feat(comms): WUQuery support abort signal add optional abortSignal to the parameters of WUQuery Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- packages/comms/src/services/wsWorkunits.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/comms/src/services/wsWorkunits.ts b/packages/comms/src/services/wsWorkunits.ts index 35f8a307f3..0ca2a7938b 100644 --- a/packages/comms/src/services/wsWorkunits.ts +++ b/packages/comms/src/services/wsWorkunits.ts @@ -83,8 +83,8 @@ export class WorkunitsService extends WorkunitsServiceBase { }); } - WUQuery(request: Partial = {}): Promise { - return super.WUQuery(request).then((response) => { + WUQuery(request: Partial = {}, abortSignal?: AbortSignal): Promise { + return this._connection.send("WUQuery", request, "json", false, abortSignal).then((response) => { return deepMixin({ Workunits: { ECLWorkunit: [] } }, response); }); }