@neutron.co.id/pendidikan-operation 1.26.3-beta.1 → 1.26.4
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/actions/akademik/action.presenceSessionStudent.cjs +1 -1
- package/build/actions/akademik/action.presenceSessionStudent.d.ts +1 -0
- package/build/actions/akademik/action.presenceSessionStudent.mjs +1 -1
- package/build/actions/tanya/action.sendQuestion.cjs +9 -21
- package/build/actions/tanya/action.sendQuestion.mjs +9 -21
- package/package.json +8 -8
|
@@ -34,7 +34,7 @@ const presenceSessionStudent = operation.Action.define({
|
|
|
34
34
|
data: {
|
|
35
35
|
classSessionId: input.sessionId,
|
|
36
36
|
studentId: input.studentId,
|
|
37
|
-
|
|
37
|
+
teacherId: input.teacherId,
|
|
38
38
|
classSessionBranchIds: session.branchIds,
|
|
39
39
|
presenceType: "student",
|
|
40
40
|
isAbsent: false,
|
|
@@ -32,7 +32,7 @@ const presenceSessionStudent = Action.define({
|
|
|
32
32
|
data: {
|
|
33
33
|
classSessionId: input.sessionId,
|
|
34
34
|
studentId: input.studentId,
|
|
35
|
-
|
|
35
|
+
teacherId: input.teacherId,
|
|
36
36
|
classSessionBranchIds: session.branchIds,
|
|
37
37
|
presenceType: "student",
|
|
38
38
|
isAbsent: false,
|
|
@@ -14,27 +14,15 @@ const sendQuestion = operation.Action.define({
|
|
|
14
14
|
utils.guard(input, "inputRequired");
|
|
15
15
|
const dbs = stream.core.dbs;
|
|
16
16
|
const dbQuestion = dbs["neu-tanya"].models["neu:tanya:question"];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
);
|
|
27
|
-
} else {
|
|
28
|
-
await dbQuestion.updateOne(
|
|
29
|
-
{
|
|
30
|
-
_id: input.questionId
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
status: "waiting",
|
|
34
|
-
askedAt: /* @__PURE__ */ new Date()
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
17
|
+
await dbQuestion.updateOne(
|
|
18
|
+
{
|
|
19
|
+
_id: input.questionId
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
status: "waiting",
|
|
23
|
+
askedAt: /* @__PURE__ */ new Date()
|
|
24
|
+
}
|
|
25
|
+
);
|
|
38
26
|
return core.Result.ok({
|
|
39
27
|
state: "questionSend",
|
|
40
28
|
message: "Question has been send.",
|
|
@@ -12,27 +12,15 @@ const sendQuestion = Action.define({
|
|
|
12
12
|
guard(input, "inputRequired");
|
|
13
13
|
const dbs = stream.core.dbs;
|
|
14
14
|
const dbQuestion = dbs["neu-tanya"].models["neu:tanya:question"];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
);
|
|
25
|
-
} else {
|
|
26
|
-
await dbQuestion.updateOne(
|
|
27
|
-
{
|
|
28
|
-
_id: input.questionId
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
status: "waiting",
|
|
32
|
-
askedAt: /* @__PURE__ */ new Date()
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
}
|
|
15
|
+
await dbQuestion.updateOne(
|
|
16
|
+
{
|
|
17
|
+
_id: input.questionId
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
status: "waiting",
|
|
21
|
+
askedAt: /* @__PURE__ */ new Date()
|
|
22
|
+
}
|
|
23
|
+
);
|
|
36
24
|
return Result.ok({
|
|
37
25
|
state: "questionSend",
|
|
38
26
|
message: "Question has been send.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.4",
|
|
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.
|
|
43
|
-
"@neutron.co.id/jadwal-models": "^1.19.
|
|
44
|
-
"@neutron.co.id/pendidikan-types": "^1.22.
|
|
42
|
+
"@neutron.co.id/akademik-models": "^1.19.3",
|
|
43
|
+
"@neutron.co.id/jadwal-models": "^1.19.3",
|
|
44
|
+
"@neutron.co.id/pendidikan-types": "^1.22.3-beta.1",
|
|
45
45
|
"@neutron.co.id/penilaian-models": "^1.17.1-beta.1",
|
|
46
46
|
"@neutron.co.id/personalia-models": "^1.11.6",
|
|
47
47
|
"@neutron.co.id/tanya-models": "^1.13.1-beta.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.
|
|
77
|
-
"@neutron.co.id/jadwal-models": "^1.19.
|
|
78
|
-
"@neutron.co.id/pendidikan-types": "^1.22.
|
|
76
|
+
"@neutron.co.id/akademik-models": "^1.19.3",
|
|
77
|
+
"@neutron.co.id/jadwal-models": "^1.19.3",
|
|
78
|
+
"@neutron.co.id/pendidikan-types": "^1.22.3-beta.1",
|
|
79
79
|
"@neutron.co.id/penilaian-models": "^1.17.1-beta.1",
|
|
80
80
|
"@neutron.co.id/personalia-models": "^1.11.6",
|
|
81
81
|
"@neutron.co.id/tanya-models": "^1.13.1-beta.1"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"build":
|
|
86
|
+
"build": 90
|
|
87
87
|
}
|