From 6d2ee88f576861d2b70b7735fcefd18b57c193e0 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sun, 30 Jun 2024 12:14:46 +0200 Subject: [PATCH] fix(ignore): Fix not awaited promise in `implicitCheckin (#1099) * fix(ignore): Fix not awaited promise in `implicitCheckin * fix coverage --- src/controller/model/device.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/model/device.ts b/src/controller/model/device.ts index 3c01443654..cd82d9640d 100755 --- a/src/controller/model/device.ts +++ b/src/controller/model/device.ts @@ -197,7 +197,9 @@ class Device extends Entity { } public implicitCheckin(): void { - this.endpoints.forEach(async e => e.sendPendingRequests(false)); + // No need to do anythign in `catch` as `endpoint.sendRequest` already logs failures. + /* istanbul ignore next */ + Promise.allSettled(this.endpoints.map((e) => e.sendPendingRequests(false))).catch(() => {}); } public updateLastSeen(): void {