@things-factory/dataset 6.2.160 → 6.2.161
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "6.2.
|
3
|
+
"version": "6.2.161",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "dist-client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -55,5 +55,5 @@
|
|
55
55
|
"simple-statistics": "^7.8.3",
|
56
56
|
"statistics": "^3.3.0"
|
57
57
|
},
|
58
|
-
"gitHead": "
|
58
|
+
"gitHead": "914b1dc22c1f532dbae28088363e6ca90411eb13"
|
59
59
|
}
|
@@ -221,7 +221,7 @@ export async function createDataSample(newDataSample: NewDataSample, context: Re
|
|
221
221
|
if (outlierScenarioId) {
|
222
222
|
const scenario = await tx.getRepository(Scenario).findOne({
|
223
223
|
where: {
|
224
|
-
domain: { id: domain.id },
|
224
|
+
domain: domain.parentId ? { id: In([domain.id, domain.parentId]) } : { id: domain.id },
|
225
225
|
id: outlierScenarioId
|
226
226
|
},
|
227
227
|
relations: ['domain', 'steps', 'updater']
|
@@ -311,7 +311,7 @@ export async function createDataSample(newDataSample: NewDataSample, context: Re
|
|
311
311
|
if (normalScenarioId) {
|
312
312
|
const scenario = await tx.getRepository(Scenario).findOne({
|
313
313
|
where: {
|
314
|
-
domain: { id: domain.id },
|
314
|
+
domain: domain.parentId ? { id: In([domain.id, domain.parentId]) } : { id: domain.id },
|
315
315
|
id: normalScenarioId
|
316
316
|
},
|
317
317
|
relations: ['domain', 'steps', 'updater']
|