@neutron.co.id/pendidikan-operation 1.26.14 → 1.26.15

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.
@@ -26,6 +26,7 @@ const syncStudentReport = operation.Action.define({
26
26
  $gte: input.startedAt,
27
27
  $lte: input.endedAt
28
28
  },
29
+ branchId: { $in: input.branchIds },
29
30
  deletedAt: { $exists: false }
30
31
  }).sort({ createdAt: -1 });
31
32
  const gradingCount = resultGrading.length;
@@ -24,6 +24,7 @@ const syncStudentReport = Action.define({
24
24
  $gte: input.startedAt,
25
25
  $lte: input.endedAt
26
26
  },
27
+ branchId: { $in: input.branchIds },
27
28
  deletedAt: { $exists: false }
28
29
  }).sort({ createdAt: -1 });
29
30
  const gradingCount = resultGrading.length;
@@ -15,7 +15,8 @@ function useImportData(stream) {
15
15
  return { status: "CSV has being processed" };
16
16
  }
17
17
  async function _gradingMapper(stream2, input) {
18
- const studentMap = await findStudentsByIdsAndNis(stream2, input.gradings);
18
+ const validStudents = input.gradings.filter((grading) => grading.userId);
19
+ const studentMap = await findStudentsByIdsAndNis(stream2, validStudents);
19
20
  const operations = [];
20
21
  const validGradings = input.gradings.filter((grading) => grading.userId);
21
22
  for (const grading of validGradings) {
@@ -13,7 +13,8 @@ function useImportData(stream) {
13
13
  return { status: "CSV has being processed" };
14
14
  }
15
15
  async function _gradingMapper(stream2, input) {
16
- const studentMap = await findStudentsByIdsAndNis(stream2, input.gradings);
16
+ const validStudents = input.gradings.filter((grading) => grading.userId);
17
+ const studentMap = await findStudentsByIdsAndNis(stream2, validStudents);
17
18
  const operations = [];
18
19
  const validGradings = input.gradings.filter((grading) => grading.userId);
19
20
  for (const grading of validGradings) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/pendidikan-operation",
3
- "version": "1.26.14",
3
+ "version": "1.26.15",
4
4
  "description": "Operation package of Neutron Pendidikan.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "contributors": [
@@ -39,9 +39,9 @@
39
39
  "@neon.id/types": "^1.69.0",
40
40
  "@neon.id/utils": "^1.52.0",
41
41
  "@neon.id/z": "^1.16.0",
42
- "@neutron.co.id/akademik-models": "^1.19.9",
42
+ "@neutron.co.id/akademik-models": "^1.19.10",
43
43
  "@neutron.co.id/jadwal-models": "^1.19.5",
44
- "@neutron.co.id/pendidikan-types": "^1.22.8",
44
+ "@neutron.co.id/pendidikan-types": "^1.22.9",
45
45
  "@neutron.co.id/penilaian-models": "^1.17.5",
46
46
  "@neutron.co.id/personalia-models": "^1.11.6",
47
47
  "@neutron.co.id/tanya-models": "^1.13.1"
@@ -73,9 +73,9 @@
73
73
  "@neon.id/types": "^1.69.0",
74
74
  "@neon.id/utils": "^1.52.0",
75
75
  "@neon.id/z": "^1.16.0",
76
- "@neutron.co.id/akademik-models": "^1.19.9",
76
+ "@neutron.co.id/akademik-models": "^1.19.10",
77
77
  "@neutron.co.id/jadwal-models": "^1.19.5",
78
- "@neutron.co.id/pendidikan-types": "^1.22.8",
78
+ "@neutron.co.id/pendidikan-types": "^1.22.9",
79
79
  "@neutron.co.id/penilaian-models": "^1.17.5",
80
80
  "@neutron.co.id/personalia-models": "^1.11.6",
81
81
  "@neutron.co.id/tanya-models": "^1.13.1"
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "build": 100
86
+ "build": 102
87
87
  }