@neutron.co.id/pendidikan-operation 1.27.14 → 1.27.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.
|
@@ -107,6 +107,15 @@ const sendAnswer = operation.Action.define({
|
|
|
107
107
|
});
|
|
108
108
|
if (novuResp?.data?.transactionId)
|
|
109
109
|
notificationEventIds.push(novuResp.data.transactionId);
|
|
110
|
+
await stream.actions.data.createOne.execute({
|
|
111
|
+
model: "neu:data:notification",
|
|
112
|
+
data: {
|
|
113
|
+
userId: student.userId,
|
|
114
|
+
moduleType: "question-answered",
|
|
115
|
+
moduleId: input.questionId,
|
|
116
|
+
url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
|
|
117
|
+
}
|
|
118
|
+
}, stream);
|
|
110
119
|
}
|
|
111
120
|
await stream.actions.data.updateOne.execute({
|
|
112
121
|
model: "neu:tanya:question",
|
|
@@ -105,6 +105,15 @@ const sendAnswer = Action.define({
|
|
|
105
105
|
});
|
|
106
106
|
if (novuResp?.data?.transactionId)
|
|
107
107
|
notificationEventIds.push(novuResp.data.transactionId);
|
|
108
|
+
await stream.actions.data.createOne.execute({
|
|
109
|
+
model: "neu:data:notification",
|
|
110
|
+
data: {
|
|
111
|
+
userId: student.userId,
|
|
112
|
+
moduleType: "question-answered",
|
|
113
|
+
moduleId: input.questionId,
|
|
114
|
+
url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
|
|
115
|
+
}
|
|
116
|
+
}, stream);
|
|
108
117
|
}
|
|
109
118
|
await stream.actions.data.updateOne.execute({
|
|
110
119
|
model: "neu:tanya:question",
|
|
@@ -276,8 +276,8 @@ function useImportData(stream) {
|
|
|
276
276
|
});
|
|
277
277
|
const subjectMap = await findSubjectsByCodes(stream2, [...uniqueSubjects]);
|
|
278
278
|
const stageMap = await findStages(stream2, [...uniqueStages]);
|
|
279
|
-
const allowedStatus = ["tayang", "arsip", "draf"
|
|
280
|
-
const allowedType = ["live", "hybrid", "
|
|
279
|
+
const allowedStatus = ["tayang", "arsip", "draf"];
|
|
280
|
+
const allowedType = ["live", "hybrid", "tatap muka"];
|
|
281
281
|
for (let i = 0; i < input.datas.length; i++) {
|
|
282
282
|
const row = input.datas[i];
|
|
283
283
|
const idx = i + 1;
|
|
@@ -274,8 +274,8 @@ function useImportData(stream) {
|
|
|
274
274
|
});
|
|
275
275
|
const subjectMap = await findSubjectsByCodes(stream2, [...uniqueSubjects]);
|
|
276
276
|
const stageMap = await findStages(stream2, [...uniqueStages]);
|
|
277
|
-
const allowedStatus = ["tayang", "arsip", "draf"
|
|
278
|
-
const allowedType = ["live", "hybrid", "
|
|
277
|
+
const allowedStatus = ["tayang", "arsip", "draf"];
|
|
278
|
+
const allowedType = ["live", "hybrid", "tatap muka"];
|
|
279
279
|
for (let i = 0; i < input.datas.length; i++) {
|
|
280
280
|
const row = input.datas[i];
|
|
281
281
|
const idx = i + 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.15",
|
|
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":
|
|
89
|
+
"build": 140
|
|
90
90
|
}
|