@carrierllc/mcp 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -938,17 +938,8 @@ function registerAllTools(server2, ctx) {
|
|
|
938
938
|
accountForSubs: account_for_subs
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
|
-
const cache = /* @__PURE__ */ new Map();
|
|
942
|
-
const sub = await resolveSubscriberByIccid(ctx.env, token2, iccid, cache);
|
|
943
|
-
const subscriberId = sub.id ?? sub.subscriberId;
|
|
944
|
-
if (subscriberId === void 0) {
|
|
945
|
-
return {
|
|
946
|
-
isError: true,
|
|
947
|
-
content: [{ type: "text", text: `Error: Could not resolve subscriberId for ICCID ${iccid}` }]
|
|
948
|
-
};
|
|
949
|
-
}
|
|
950
941
|
return ocsCall(ctx.env, token2, "affectPackageToSubscriber", {
|
|
951
|
-
subscriber:
|
|
942
|
+
subscriber: { iccid },
|
|
952
943
|
packageTemplateId
|
|
953
944
|
});
|
|
954
945
|
}
|