@riddix/hamh 2.1.0-alpha.457 → 2.1.0-alpha.458
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/backend/cli.js
CHANGED
|
@@ -148932,7 +148932,12 @@ function mappingProfileApi(mappingStorage) {
|
|
|
148932
148932
|
router.get("/export/:bridgeId", (req, res) => {
|
|
148933
148933
|
const { bridgeId } = req.params;
|
|
148934
148934
|
const profileName = req.query.name || "Unnamed Profile";
|
|
148935
|
-
const
|
|
148935
|
+
const entityIdsParam = req.query.entityIds;
|
|
148936
|
+
let mappings = mappingStorage.getMappingsForBridge(bridgeId);
|
|
148937
|
+
if (entityIdsParam) {
|
|
148938
|
+
const selectedIds = new Set(entityIdsParam.split(","));
|
|
148939
|
+
mappings = mappings.filter((m) => selectedIds.has(m.entityId));
|
|
148940
|
+
}
|
|
148936
148941
|
if (mappings.length === 0) {
|
|
148937
148942
|
res.status(404).json({ error: "No mappings found for this bridge" });
|
|
148938
148943
|
return;
|