@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 +1 -1
- package/package.json +1 -1
- package/src/abba.ts +1 -1
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
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, [])
|