@speakableio/core 1.0.41 → 1.0.43

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.
@@ -1216,9 +1216,7 @@ 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
- weights,
1222
1220
  userId,
1223
1221
  status,
1224
1222
  studentName
@@ -1232,14 +1230,7 @@ async function _submitAssignmentScore({
1232
1230
  status
1233
1231
  };
1234
1232
  if (assignment.isAssessment) {
1235
- const result = await handleAssessment(
1236
- assignment,
1237
- userId,
1238
- cardIds,
1239
- weights,
1240
- fieldsUpdated,
1241
- studentName
1242
- );
1233
+ const result = await handleAssessment(assignment, userId, fieldsUpdated, studentName);
1243
1234
  return result;
1244
1235
  } else if (assignment.courseId) {
1245
1236
  await handleCourseAssignment(assignment, userId);
@@ -1251,7 +1242,7 @@ var submitAssignmentScore = withErrorHandler(
1251
1242
  _submitAssignmentScore,
1252
1243
  "submitAssignmentScore"
1253
1244
  );
1254
- async function handleAssessment(assignment, userId, cardIds, weights, fieldsUpdated, studentName) {
1245
+ async function handleAssessment(assignment, userId, fieldsUpdated, studentName) {
1255
1246
  var _a, _b, _c;
1256
1247
  const path = refsAssignmentFiresotre.assignmentScores({ id: assignment.id, userId });
1257
1248
  const response = await api.getDoc(path);
@@ -1517,8 +1508,6 @@ function useSubmitAssignmentScore({
1517
1508
  mutationFn: async ({
1518
1509
  assignment,
1519
1510
  userId,
1520
- cardIds,
1521
- weights,
1522
1511
  scores,
1523
1512
  status
1524
1513
  }) => {
@@ -1526,8 +1515,6 @@ function useSubmitAssignmentScore({
1526
1515
  const scoreUpdated = await submitAssignmentScore({
1527
1516
  assignment,
1528
1517
  userId,
1529
- cardIds,
1530
- weights,
1531
1518
  status,
1532
1519
  studentName
1533
1520
  });
@@ -2874,9 +2861,7 @@ function useActivity({
2874
2861
  maxPoints: (_n = (_m = assignmentQuery.data) == null ? void 0 : _m.maxPoints) != null ? _n : 0
2875
2862
  },
2876
2863
  userId,
2877
- cardIds: scorableCardIds,
2878
2864
  scores: scoreQuery.data,
2879
- weights: weightsToUse != null ? weightsToUse : {},
2880
2865
  status: someCardIsManualGraded ? "PENDING_REVIEW" : "SUBMITTED"
2881
2866
  });
2882
2867
  if ((_o = assignmentQuery.data) == null ? void 0 : _o.ltiDeeplink) {