From adc513b367221a68ead06892268160991ff842a9 Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:08:23 -0500 Subject: [PATCH] feat(comms): allow the WU refresh function to accept optional request Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- packages/comms/src/ecl/workunit.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/comms/src/ecl/workunit.ts b/packages/comms/src/ecl/workunit.ts index e975e5d589..fe24757a67 100644 --- a/packages/comms/src/ecl/workunit.ts +++ b/packages/comms/src/ecl/workunit.ts @@ -431,8 +431,8 @@ export class Workunit extends StateObject implem return this; } - async refreshInfo(): Promise { - await this.WUInfo(); + async refreshInfo(request?: Partial): Promise { + await this.WUInfo(request); return this; } @@ -441,9 +441,9 @@ export class Workunit extends StateObject implem return this; } - async refresh(full: boolean = false): Promise { + async refresh(full: boolean = false, request?: Partial): Promise { if (full) { - await Promise.all([this.refreshInfo(), this.refreshDebug()]); + await Promise.all([this.refreshInfo(request), this.refreshDebug()]); } else { await this.refreshState(); }