From 2c877c908cbfcc6568c61c7ef3f47b7483a4da61 Mon Sep 17 00:00:00 2001 From: Angi Balanescu Date: Wed, 19 Nov 2025 15:30:48 +0200 Subject: [PATCH] Fix type mismatch --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index eff015d..85679d0 100644 --- a/src/index.js +++ b/src/index.js @@ -1177,7 +1177,7 @@ class CloudManagerAPI { async _findIpAllowlist (programId, ipAllowlistId) { const ipAllowlists = await this.listIpAllowlists(programId) - const ipAllowlist = ipAllowlists.find(i => i.id === ipAllowlistId) + const ipAllowlist = ipAllowlists.find(i => String(i.id) === String(ipAllowlistId)) if (!ipAllowlist) { throw new codes.ERROR_FIND_IP_ALLOWLIST({ messageValues: [ipAllowlistId, programId] }) } @@ -1277,7 +1277,7 @@ class CloudManagerAPI { */ async removeIpAllowlistBinding (programId, ipAllowlistId, environmentId, service) { const ipAllowlist = await this._findIpAllowlist(programId, ipAllowlistId) - let binding = ipAllowlist.bindings.find(b => b.environmentId === environmentId && b.tier === service) + let binding = ipAllowlist.bindings.find(b => String(b.environmentId) === String(environmentId) && b.tier === service) if (!binding) { throw new codes.ERROR_FIND_IP_ALLOWLIST_BINDING({ messageValues: [ipAllowlistId, environmentId, service, programId] }) }