@objectstack/rest 7.8.0 → 7.9.0

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.cjs CHANGED
@@ -1613,13 +1613,15 @@ var RestServer = class {
1613
1613
  const actorHeader = req.headers?.["x-actor"] ?? req.headers?.["X-Actor"] ?? req.user?.id ?? req.userId;
1614
1614
  const actor = typeof actorHeader === "string" ? actorHeader : void 0;
1615
1615
  const stateParam = typeof req.query?.state === "string" && req.query.state.toLowerCase() === "draft" ? "draft" : void 0;
1616
+ const dropStorage = req.query?.dropStorage === "true" || req.query?.dropStorage === "1";
1616
1617
  const result = await p.deleteMetaItem({
1617
1618
  type: req.params.type,
1618
1619
  name: req.params.name,
1619
1620
  ...environmentId ? { environmentId } : {},
1620
1621
  ...parentVersion !== void 0 ? { parentVersion } : {},
1621
1622
  ...actor ? { actor } : {},
1622
- ...stateParam ? { state: stateParam } : {}
1623
+ ...stateParam ? { state: stateParam } : {},
1624
+ ...dropStorage ? { dropStorage: true } : {}
1623
1625
  });
1624
1626
  res.json(result);
1625
1627
  } catch (error) {