@rebasepro/server 0.19.2-canary.g7199920 → 0.19.2-canary.g98b88fd

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.es.js CHANGED
@@ -3949,12 +3949,10 @@ var RestApiGenerator = class {
3949
3949
  const id = c.req.param("id");
3950
3950
  const driver = this.getScopedDriver(c);
3951
3951
  return this.runIdempotent(c, { id: String(id) }, async () => {
3952
- const hardDelete = parseHardDelete(c.req.query(HARD_DELETE_QUERY_PARAM));
3953
3952
  const existingEntity = await driver.fetchOne({
3954
3953
  path: getCollectionDataPath(collection),
3955
3954
  id: String(id),
3956
- collection: resolvedCollection,
3957
- withDeleted: hardDelete ? true : void 0
3955
+ collection: resolvedCollection
3958
3956
  });
3959
3957
  if (!existingEntity) throw this.entityNotFound(collection.slug, String(id));
3960
3958
  const ifMatch = c.req.header(IF_MATCH_HEADER);
@@ -4117,15 +4115,13 @@ var RestApiGenerator = class {
4117
4115
  if (!parsed || !parsed.id) return next();
4118
4116
  const driver = this.getScopedDriver(c);
4119
4117
  this.enforceSubcollectionApiKeyPermission(c, parsed.collectionPath);
4120
- const hardDelete = parseHardDelete(c.req.query(HARD_DELETE_QUERY_PARAM));
4121
4118
  const existingEntity = await driver.fetchOne({
4122
4119
  path: parsed.collectionPath,
4123
- id: parsed.id,
4124
- withDeleted: hardDelete ? true : void 0
4120
+ id: parsed.id
4125
4121
  });
4126
4122
  if (!existingEntity) throw this.entityNotFound(parsed.collectionPath, parsed.id);
4127
4123
  await driver.delete({
4128
- hard: hardDelete,
4124
+ hard: parseHardDelete(c.req.query(HARD_DELETE_QUERY_PARAM)),
4129
4125
  row: {
4130
4126
  id: parsed.id,
4131
4127
  path: parsed.collectionPath,