@speakableio/core 1.0.40 → 1.0.42
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/dist/index.native.js +3 -14
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +3 -14
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.js +3 -14
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
CHANGED
|
@@ -1216,7 +1216,6 @@ async function clearScoreV2(params) {
|
|
|
1216
1216
|
// src/domains/assignment/services/submit-assignment-score.service.ts
|
|
1217
1217
|
import dayjs4 from "dayjs";
|
|
1218
1218
|
async function _submitAssignmentScore({
|
|
1219
|
-
cardIds,
|
|
1220
1219
|
assignment,
|
|
1221
1220
|
weights,
|
|
1222
1221
|
userId,
|
|
@@ -1232,14 +1231,7 @@ async function _submitAssignmentScore({
|
|
|
1232
1231
|
status
|
|
1233
1232
|
};
|
|
1234
1233
|
if (assignment.isAssessment) {
|
|
1235
|
-
const result = await handleAssessment(
|
|
1236
|
-
assignment,
|
|
1237
|
-
userId,
|
|
1238
|
-
cardIds,
|
|
1239
|
-
weights,
|
|
1240
|
-
fieldsUpdated,
|
|
1241
|
-
studentName
|
|
1242
|
-
);
|
|
1234
|
+
const result = await handleAssessment(assignment, userId, weights, fieldsUpdated, studentName);
|
|
1243
1235
|
return result;
|
|
1244
1236
|
} else if (assignment.courseId) {
|
|
1245
1237
|
await handleCourseAssignment(assignment, userId);
|
|
@@ -1251,15 +1243,14 @@ var submitAssignmentScore = withErrorHandler(
|
|
|
1251
1243
|
_submitAssignmentScore,
|
|
1252
1244
|
"submitAssignmentScore"
|
|
1253
1245
|
);
|
|
1254
|
-
async function handleAssessment(assignment, userId,
|
|
1246
|
+
async function handleAssessment(assignment, userId, weights, fieldsUpdated, studentName) {
|
|
1255
1247
|
var _a, _b, _c;
|
|
1256
1248
|
const path = refsAssignmentFiresotre.assignmentScores({ id: assignment.id, userId });
|
|
1257
1249
|
const response = await api.getDoc(path);
|
|
1258
1250
|
if (!response.data) {
|
|
1259
1251
|
throw new Error("Score not found");
|
|
1260
1252
|
}
|
|
1261
|
-
|
|
1262
|
-
await api.updateDoc(path, { score: scoreCalculated, status: "PENDING_REVIEW" });
|
|
1253
|
+
await api.updateDoc(path, { status: "PENDING_REVIEW" });
|
|
1263
1254
|
await ((_c = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "submitAssessment")) == null ? void 0 : _c({
|
|
1264
1255
|
assignmentId: assignment.id,
|
|
1265
1256
|
assignmentTitle: assignment.name,
|
|
@@ -1518,7 +1509,6 @@ function useSubmitAssignmentScore({
|
|
|
1518
1509
|
mutationFn: async ({
|
|
1519
1510
|
assignment,
|
|
1520
1511
|
userId,
|
|
1521
|
-
cardIds,
|
|
1522
1512
|
weights,
|
|
1523
1513
|
scores,
|
|
1524
1514
|
status
|
|
@@ -1527,7 +1517,6 @@ function useSubmitAssignmentScore({
|
|
|
1527
1517
|
const scoreUpdated = await submitAssignmentScore({
|
|
1528
1518
|
assignment,
|
|
1529
1519
|
userId,
|
|
1530
|
-
cardIds,
|
|
1531
1520
|
weights,
|
|
1532
1521
|
status,
|
|
1533
1522
|
studentName
|