@neutron.co.id/pendidikan-operation 1.27.22 → 1.27.23

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.
@@ -88,11 +88,6 @@ const sendClassConsultationNotification = operation.Action.define({
88
88
  userId: student.userId,
89
89
  moduleType: "classConsultation-created",
90
90
  moduleId: input?.classConsultationId,
91
- messageData: {
92
- id: consultation.id,
93
- subject: consultation.subject?.name,
94
- message: `Hai! Kamu baru saja ditambahkan ke Interaksi pelajaran ${consultation.subject?.name} oleh Pengajar. Yuk, cek sekarang!`
95
- },
96
91
  url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
97
92
  }
98
93
  }
@@ -86,11 +86,6 @@ const sendClassConsultationNotification = Action.define({
86
86
  userId: student.userId,
87
87
  moduleType: "classConsultation-created",
88
88
  moduleId: input?.classConsultationId,
89
- messageData: {
90
- id: consultation.id,
91
- subject: consultation.subject?.name,
92
- message: `Hai! Kamu baru saja ditambahkan ke Interaksi pelajaran ${consultation.subject?.name} oleh Pengajar. Yuk, cek sekarang!`
93
- },
94
89
  url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
95
90
  }
96
91
  }
@@ -125,10 +125,6 @@ const sendScoreNotification = operation.Action.define({
125
125
  userId: gradingData.student.userId,
126
126
  moduleType: "score-published",
127
127
  moduleId: input?.gradingId,
128
- messageData: {
129
- id: input?.gradingId,
130
- message: `Hai! Ada Penilaian baru di Rekam Belajar kamu dengan penilaian ${gradingData.gradingType?.name}. Yuk, cek hasilnya dan lihat progresmu!`
131
- },
132
128
  url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
133
129
  }
134
130
  }
@@ -190,10 +186,6 @@ const sendScoreNotification = operation.Action.define({
190
186
  userId: gradingData.student.userId,
191
187
  moduleType: "score-published-parent",
192
188
  moduleId: input?.gradingId,
193
- messageData: {
194
- id: input?.gradingId,
195
- message: `Hai, ada penilaian baru untuk ${gradingData.student?.user?.name} dengan penilaian ${gradingData.gradingType?.name}! Yuk, lihat perkembangannya di Rekam Belajar.`
196
- },
197
189
  url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
198
190
  }
199
191
  }
@@ -123,10 +123,6 @@ const sendScoreNotification = Action.define({
123
123
  userId: gradingData.student.userId,
124
124
  moduleType: "score-published",
125
125
  moduleId: input?.gradingId,
126
- messageData: {
127
- id: input?.gradingId,
128
- message: `Hai! Ada Penilaian baru di Rekam Belajar kamu dengan penilaian ${gradingData.gradingType?.name}. Yuk, cek hasilnya dan lihat progresmu!`
129
- },
130
126
  url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
131
127
  }
132
128
  }
@@ -188,10 +184,6 @@ const sendScoreNotification = Action.define({
188
184
  userId: gradingData.student.userId,
189
185
  moduleType: "score-published-parent",
190
186
  moduleId: input?.gradingId,
191
- messageData: {
192
- id: input?.gradingId,
193
- message: `Hai, ada penilaian baru untuk ${gradingData.student?.user?.name} dengan penilaian ${gradingData.gradingType?.name}! Yuk, lihat perkembangannya di Rekam Belajar.`
194
- },
195
187
  url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
196
188
  }
197
189
  }
@@ -106,14 +106,9 @@ const sendAnswer = operation.Action.define({
106
106
  overrides: {
107
107
  fcm: {
108
108
  data: {
109
- userId: student.userId,
109
+ userId: student.userId || identifier.userId,
110
110
  moduleType: "question-answered",
111
111
  moduleId: input.questionId,
112
- messageData: {
113
- id: input.questionId,
114
- subject: input.subjectName,
115
- message: `Pertanyaan ${input.code} anda dengan mata pelajaran ${input.subjectName} telah dijawab oleh Pengajar`
116
- },
117
112
  url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
118
113
  }
119
114
  }
@@ -104,14 +104,9 @@ const sendAnswer = Action.define({
104
104
  overrides: {
105
105
  fcm: {
106
106
  data: {
107
- userId: student.userId,
107
+ userId: student.userId || identifier.userId,
108
108
  moduleType: "question-answered",
109
109
  moduleId: input.questionId,
110
- messageData: {
111
- id: input.questionId,
112
- subject: input.subjectName,
113
- message: `Pertanyaan ${input.code} anda dengan mata pelajaran ${input.subjectName} telah dijawab oleh Pengajar`
114
- },
115
110
  url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
116
111
  }
117
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/pendidikan-operation",
3
- "version": "1.27.22",
3
+ "version": "1.27.23",
4
4
  "description": "Operation package of Neutron Pendidikan.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "contributors": [
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "build": 147
89
+ "build": 148
90
90
  }