From bdee3426ae5f42a3d79bb7d2934e2df80088e276 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Tue, 19 Nov 2024 19:34:27 +0000 Subject: [PATCH] check failures lengh --- src/services/main/adminManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/main/adminManager.ts b/src/services/main/adminManager.ts index dc0d3f22..9cd47f26 100644 --- a/src/services/main/adminManager.ts +++ b/src/services/main/adminManager.ts @@ -180,7 +180,7 @@ export class AdminManager { async UpdateChannelPolicy(req: Types.UpdateChannelPolicyRequest): Promise { const chanPoint = req.update.type === Types.UpdateChannelPolicyRequest_update_type.CHANNEL_POINT ? req.update.channel_point : "" const res = await this.lnd.UpdateChannelPolicy(chanPoint, req.policy) - if (res.failedUpdates) { + if (res.failedUpdates.length > 0) { this.log(ERROR, "failed to update policy", res.failedUpdates) throw new Error("failed to update policy") }