@neutron.co.id/pendidikan-operation 1.21.0 → 1.21.1
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/build/index.cjs +15 -0
- package/build/index.mjs +15 -0
- package/package.json +10 -10
package/build/index.cjs
CHANGED
|
@@ -2318,6 +2318,7 @@ const deleteManySession = operation.Action.define({
|
|
|
2318
2318
|
guard(input, "inputRequired");
|
|
2319
2319
|
const dbs = stream.core.dbs;
|
|
2320
2320
|
const dbSession = dbs["neu-jadwal"].models["neu:jadwal:classSession"];
|
|
2321
|
+
const dbGroup = dbs["neu-jadwal"].models["neu:jadwal:classGroup"];
|
|
2321
2322
|
const findAllSesi = await dbSession.updateMany(
|
|
2322
2323
|
{
|
|
2323
2324
|
groupIds: { $in: input.groupId },
|
|
@@ -2330,6 +2331,20 @@ const deleteManySession = operation.Action.define({
|
|
|
2330
2331
|
}
|
|
2331
2332
|
}
|
|
2332
2333
|
);
|
|
2334
|
+
await dbGroup.findByIdAndUpdate(input.groupId, {
|
|
2335
|
+
$set: {
|
|
2336
|
+
repeatStartedAt: null,
|
|
2337
|
+
repeatEndedAt: null,
|
|
2338
|
+
interval: null,
|
|
2339
|
+
frequency: null,
|
|
2340
|
+
type: null,
|
|
2341
|
+
classSessionPurposeId: null,
|
|
2342
|
+
buildingId: null,
|
|
2343
|
+
roomId: null,
|
|
2344
|
+
subjectIds: null,
|
|
2345
|
+
teacherRepeaterIds: null
|
|
2346
|
+
}
|
|
2347
|
+
});
|
|
2333
2348
|
console.log({ findAllSesi });
|
|
2334
2349
|
return core.Result.ok({
|
|
2335
2350
|
state: "manySessionDelete",
|
package/build/index.mjs
CHANGED
|
@@ -2302,6 +2302,7 @@ const deleteManySession = Action.define({
|
|
|
2302
2302
|
guard(input, "inputRequired");
|
|
2303
2303
|
const dbs = stream.core.dbs;
|
|
2304
2304
|
const dbSession = dbs["neu-jadwal"].models["neu:jadwal:classSession"];
|
|
2305
|
+
const dbGroup = dbs["neu-jadwal"].models["neu:jadwal:classGroup"];
|
|
2305
2306
|
const findAllSesi = await dbSession.updateMany(
|
|
2306
2307
|
{
|
|
2307
2308
|
groupIds: { $in: input.groupId },
|
|
@@ -2314,6 +2315,20 @@ const deleteManySession = Action.define({
|
|
|
2314
2315
|
}
|
|
2315
2316
|
}
|
|
2316
2317
|
);
|
|
2318
|
+
await dbGroup.findByIdAndUpdate(input.groupId, {
|
|
2319
|
+
$set: {
|
|
2320
|
+
repeatStartedAt: null,
|
|
2321
|
+
repeatEndedAt: null,
|
|
2322
|
+
interval: null,
|
|
2323
|
+
frequency: null,
|
|
2324
|
+
type: null,
|
|
2325
|
+
classSessionPurposeId: null,
|
|
2326
|
+
buildingId: null,
|
|
2327
|
+
roomId: null,
|
|
2328
|
+
subjectIds: null,
|
|
2329
|
+
teacherRepeaterIds: null
|
|
2330
|
+
}
|
|
2331
|
+
});
|
|
2317
2332
|
console.log({ findAllSesi });
|
|
2318
2333
|
return Result.ok({
|
|
2319
2334
|
state: "manySessionDelete",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"description": "Operation package of Neutron Pendidikan.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@neon.id/types": "^1.65.0",
|
|
39
39
|
"@neon.id/utils": "^1.37.0",
|
|
40
40
|
"@neon.id/z": "^1.11.0",
|
|
41
|
-
"@neutron.co.id/akademik-models": "^1.
|
|
41
|
+
"@neutron.co.id/akademik-models": "^1.14.2",
|
|
42
42
|
"@neutron.co.id/jadwal-models": "^1.13.5",
|
|
43
|
-
"@neutron.co.id/pendidikan-types": "^1.17.
|
|
44
|
-
"@neutron.co.id/penilaian-models": "^1.14.
|
|
45
|
-
"@neutron.co.id/personalia-models": "^1.11.
|
|
43
|
+
"@neutron.co.id/pendidikan-types": "^1.17.8",
|
|
44
|
+
"@neutron.co.id/penilaian-models": "^1.14.7",
|
|
45
|
+
"@neutron.co.id/personalia-models": "^1.11.6",
|
|
46
46
|
"@neutron.co.id/tanya-models": "^1.9.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"@neon.id/types": "^1.65.0",
|
|
70
70
|
"@neon.id/utils": "^1.37.0",
|
|
71
71
|
"@neon.id/z": "^1.11.0",
|
|
72
|
-
"@neutron.co.id/akademik-models": "^1.
|
|
72
|
+
"@neutron.co.id/akademik-models": "^1.14.2",
|
|
73
73
|
"@neutron.co.id/jadwal-models": "^1.13.5",
|
|
74
|
-
"@neutron.co.id/pendidikan-types": "^1.17.
|
|
75
|
-
"@neutron.co.id/penilaian-models": "^1.14.
|
|
76
|
-
"@neutron.co.id/personalia-models": "^1.11.
|
|
74
|
+
"@neutron.co.id/pendidikan-types": "^1.17.8",
|
|
75
|
+
"@neutron.co.id/penilaian-models": "^1.14.7",
|
|
76
|
+
"@neutron.co.id/personalia-models": "^1.11.6",
|
|
77
77
|
"@neutron.co.id/tanya-models": "^1.9.0"
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"build":
|
|
82
|
+
"build": 78
|
|
83
83
|
}
|