@neutron.co.id/pendidikan-operation 1.6.1 → 1.6.2
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 +3 -2
- package/build/index.mjs +3 -2
- package/package.json +30 -30
package/build/index.cjs
CHANGED
|
@@ -292,7 +292,7 @@ const syncStudentBranch = operation.Action.define({
|
|
|
292
292
|
const dbStudent = dbs["neu-akademik"].models["neu:akademik:student"];
|
|
293
293
|
const dbKonsumen = dbs["neu-konsumen"].models["neu:konsumen:invoiceStudent"];
|
|
294
294
|
const resultGroup = await dbGroup.find({
|
|
295
|
-
studentIds: input.studentId,
|
|
295
|
+
studentIds: { $in: [input.studentId] },
|
|
296
296
|
startedAt: {
|
|
297
297
|
$lte: /* @__PURE__ */ new Date()
|
|
298
298
|
},
|
|
@@ -416,7 +416,8 @@ async function _getSessionConflict(stream, input) {
|
|
|
416
416
|
const session = await dbSession.find({
|
|
417
417
|
deletedAt: { $exists: false },
|
|
418
418
|
startedAt: { $gte: input.startedAt },
|
|
419
|
-
endedAt: { $lte: input.endedAt }
|
|
419
|
+
endedAt: { $lte: input.endedAt },
|
|
420
|
+
branchIds: { $in: input.staff?.branchIds }
|
|
420
421
|
});
|
|
421
422
|
const sessionId = session.map((data) => {
|
|
422
423
|
return data._id;
|
package/build/index.mjs
CHANGED
|
@@ -286,7 +286,7 @@ const syncStudentBranch = Action.define({
|
|
|
286
286
|
const dbStudent = dbs["neu-akademik"].models["neu:akademik:student"];
|
|
287
287
|
const dbKonsumen = dbs["neu-konsumen"].models["neu:konsumen:invoiceStudent"];
|
|
288
288
|
const resultGroup = await dbGroup.find({
|
|
289
|
-
studentIds: input.studentId,
|
|
289
|
+
studentIds: { $in: [input.studentId] },
|
|
290
290
|
startedAt: {
|
|
291
291
|
$lte: /* @__PURE__ */ new Date()
|
|
292
292
|
},
|
|
@@ -410,7 +410,8 @@ async function _getSessionConflict(stream, input) {
|
|
|
410
410
|
const session = await dbSession.find({
|
|
411
411
|
deletedAt: { $exists: false },
|
|
412
412
|
startedAt: { $gte: input.startedAt },
|
|
413
|
-
endedAt: { $lte: input.endedAt }
|
|
413
|
+
endedAt: { $lte: input.endedAt },
|
|
414
|
+
branchIds: { $in: input.staff?.branchIds }
|
|
414
415
|
});
|
|
415
416
|
const sessionId = session.map((data) => {
|
|
416
417
|
return data._id;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "Operation package of Neutron Pendidikan.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -29,49 +29,49 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@bluelibs/nova": "1.4.2",
|
|
32
|
-
"@neon.id/core": "1.
|
|
32
|
+
"@neon.id/core": "1.31.0",
|
|
33
33
|
"@neon.id/gerbang-js": "1.3.0",
|
|
34
|
-
"@neon.id/model": "0.
|
|
35
|
-
"@neon.id/operation": "0.
|
|
36
|
-
"@neon.id/permit": "0.
|
|
37
|
-
"@neon.id/query": "0.
|
|
38
|
-
"@neon.id/types": "1.
|
|
39
|
-
"@neon.id/utils": "0.
|
|
40
|
-
"@neutron.co.id/akademik-models": "1.4.
|
|
41
|
-
"@neutron.co.id/jadwal-models": "1.4.
|
|
42
|
-
"@neutron.co.id/penilaian-models": "1.6.
|
|
34
|
+
"@neon.id/model": "0.65.0",
|
|
35
|
+
"@neon.id/operation": "0.45.0",
|
|
36
|
+
"@neon.id/permit": "0.20.0",
|
|
37
|
+
"@neon.id/query": "0.48.0",
|
|
38
|
+
"@neon.id/types": "1.44.0",
|
|
39
|
+
"@neon.id/utils": "0.43.0",
|
|
40
|
+
"@neutron.co.id/akademik-models": "1.4.4",
|
|
41
|
+
"@neutron.co.id/jadwal-models": "1.4.2",
|
|
42
|
+
"@neutron.co.id/penilaian-models": "1.6.3",
|
|
43
43
|
"@neutron.co.id/personalia-models": "1.4.4",
|
|
44
|
-
"@neutron.co.id/tanya-models": "1.3.
|
|
44
|
+
"@neutron.co.id/tanya-models": "1.3.2",
|
|
45
45
|
"dayjs": "1.11.7",
|
|
46
46
|
"mongoose": "6.10.5",
|
|
47
47
|
"nanoid": "4.0.2",
|
|
48
48
|
"ofetch": "1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/node": "
|
|
52
|
-
"@vitest/coverage-c8": "0.
|
|
53
|
-
"@vitest/ui": "0.
|
|
51
|
+
"@types/node": "20.1.3",
|
|
52
|
+
"@vitest/coverage-c8": "0.31.0",
|
|
53
|
+
"@vitest/ui": "0.31.0",
|
|
54
54
|
"@vortex.so/eslint-plugin": "0.7.0",
|
|
55
|
-
"tsx": "3.12.
|
|
55
|
+
"tsx": "3.12.7",
|
|
56
56
|
"typescript": "5.0.4",
|
|
57
57
|
"unbuild": "1.2.1",
|
|
58
|
-
"vite": "4.3.
|
|
59
|
-
"vitest": "0.
|
|
58
|
+
"vite": "4.3.5",
|
|
59
|
+
"vitest": "0.31.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@bluelibs/nova": "1.4.2",
|
|
63
|
-
"@neon.id/core": "^1.
|
|
63
|
+
"@neon.id/core": "^1.31.0",
|
|
64
64
|
"@neon.id/gerbang-js": "^1.3.0",
|
|
65
|
-
"@neon.id/model": "^0.
|
|
66
|
-
"@neon.id/operation": "^0.
|
|
67
|
-
"@neon.id/permit": "^0.
|
|
68
|
-
"@neon.id/query": "^0.
|
|
69
|
-
"@neon.id/types": "^1.
|
|
70
|
-
"@neon.id/utils": "^0.
|
|
71
|
-
"@neutron.co.id/akademik-models": "^1.4.
|
|
72
|
-
"@neutron.co.id/jadwal-models": "^1.4.
|
|
73
|
-
"@neutron.co.id/penilaian-models": "^1.6.
|
|
74
|
-
"@neutron.co.id/tanya-models": "^1.3.
|
|
65
|
+
"@neon.id/model": "^0.65.0",
|
|
66
|
+
"@neon.id/operation": "^0.45.0",
|
|
67
|
+
"@neon.id/permit": "^0.20.0",
|
|
68
|
+
"@neon.id/query": "^0.48.0",
|
|
69
|
+
"@neon.id/types": "^1.44.0",
|
|
70
|
+
"@neon.id/utils": "^0.43.0",
|
|
71
|
+
"@neutron.co.id/akademik-models": "^1.4.4",
|
|
72
|
+
"@neutron.co.id/jadwal-models": "^1.4.2",
|
|
73
|
+
"@neutron.co.id/penilaian-models": "^1.6.3",
|
|
74
|
+
"@neutron.co.id/tanya-models": "^1.3.2",
|
|
75
75
|
"dayjs": "1.11.7",
|
|
76
76
|
"mongoose": "^6.10.5",
|
|
77
77
|
"ofetch": "^1.0.1"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"build":
|
|
82
|
+
"build": 43
|
|
83
83
|
}
|