@naturalcycles/abba 2.1.1 → 2.2.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/abba.js CHANGED
@@ -121,7 +121,7 @@ export class Abba {
121
121
  await this.experimentDao.saveBatch(requiresUpdating, { saveMethod: 'update' });
122
122
  }
123
123
  async softDeleteExperiment(experimentId) {
124
- await this.experimentDao.patchById(experimentId, { deleted: true, exclusions: [] }, { saveMethod: 'update' });
124
+ await this.experimentDao.patchById(experimentId, { deleted: true, status: AssignmentStatus.Inactive, exclusions: [] }, { saveMethod: 'update' });
125
125
  await this.updateExclusions(experimentId, []);
126
126
  }
127
127
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/abba",
3
3
  "type": "module",
4
- "version": "2.1.1",
4
+ "version": "2.2.0",
5
5
  "scripts": {
6
6
  "prepare": "husky",
7
7
  "build": "dev-lib build",
package/src/abba.ts CHANGED
@@ -187,7 +187,7 @@ export class Abba {
187
187
  async softDeleteExperiment(experimentId: string): Promise<void> {
188
188
  await this.experimentDao.patchById(
189
189
  experimentId,
190
- { deleted: true, exclusions: [] },
190
+ { deleted: true, status: AssignmentStatus.Inactive, exclusions: [] },
191
191
  { saveMethod: 'update' },
192
192
  )
193
193
  await this.updateExclusions(experimentId, [])