@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.
@@ -34,7 +34,7 @@ const presenceSessionStudent = operation.Action.define({
34
34
  data: {
35
35
  classSessionId: input.sessionId,
36
36
  studentId: input.studentId,
37
- // teacherId: input.teacherId,
37
+ teacherId: input.teacherId,
38
38
  classSessionBranchIds: session.branchIds,
39
39
  presenceType: "student",
40
40
  isAbsent: false,
@@ -2,6 +2,7 @@ import { Action } from '@neon.id/operation';
2
2
  export interface PresenceSessionStudentInput {
3
3
  sessionId: string;
4
4
  studentId: string;
5
+ teacherId: string;
5
6
  }
6
7
  export interface PresenceSessionStudentOutput {
7
8
  code: number;
@@ -32,7 +32,7 @@ const presenceSessionStudent = Action.define({
32
32
  data: {
33
33
  classSessionId: input.sessionId,
34
34
  studentId: input.studentId,
35
- // teacherId: input.teacherId,
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
- const status = input.status;
18
- if (status === "notUnderstand") {
19
- await dbQuestion.updateOne(
20
- {
21
- _id: input.questionId
22
- },
23
- {
24
- status: "answering"
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
- const status = input.status;
16
- if (status === "notUnderstand") {
17
- await dbQuestion.updateOne(
18
- {
19
- _id: input.questionId
20
- },
21
- {
22
- status: "answering"
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-beta.1",
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.1-beta.1",
43
- "@neutron.co.id/jadwal-models": "^1.19.2-beta.1",
44
- "@neutron.co.id/pendidikan-types": "^1.22.2-beta.1",
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.1-beta.1",
77
- "@neutron.co.id/jadwal-models": "^1.19.2-beta.1",
78
- "@neutron.co.id/pendidikan-types": "^1.22.2-beta.1",
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": 88
86
+ "build": 90
87
87
  }