@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.js CHANGED
@@ -1573,13 +1573,15 @@ var RestServer = class {
1573
1573
  const actorHeader = req.headers?.["x-actor"] ?? req.headers?.["X-Actor"] ?? req.user?.id ?? req.userId;
1574
1574
  const actor = typeof actorHeader === "string" ? actorHeader : void 0;
1575
1575
  const stateParam = typeof req.query?.state === "string" && req.query.state.toLowerCase() === "draft" ? "draft" : void 0;
1576
+ const dropStorage = req.query?.dropStorage === "true" || req.query?.dropStorage === "1";
1576
1577
  const result = await p.deleteMetaItem({
1577
1578
  type: req.params.type,
1578
1579
  name: req.params.name,
1579
1580
  ...environmentId ? { environmentId } : {},
1580
1581
  ...parentVersion !== void 0 ? { parentVersion } : {},
1581
1582
  ...actor ? { actor } : {},
1582
- ...stateParam ? { state: stateParam } : {}
1583
+ ...stateParam ? { state: stateParam } : {},
1584
+ ...dropStorage ? { dropStorage: true } : {}
1583
1585
  });
1584
1586
  res.json(result);
1585
1587
  } catch (error) {