@speakableio/core 1.0.41 → 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.web.js 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,7 +1243,7 @@ var submitAssignmentScore = withErrorHandler(
1251
1243
  _submitAssignmentScore,
1252
1244
  "submitAssignmentScore"
1253
1245
  );
1254
- async function handleAssessment(assignment, userId, cardIds, weights, fieldsUpdated, studentName) {
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);
@@ -1517,7 +1509,6 @@ function useSubmitAssignmentScore({
1517
1509
  mutationFn: async ({
1518
1510
  assignment,
1519
1511
  userId,
1520
- cardIds,
1521
1512
  weights,
1522
1513
  scores,
1523
1514
  status
@@ -1526,7 +1517,6 @@ function useSubmitAssignmentScore({
1526
1517
  const scoreUpdated = await submitAssignmentScore({
1527
1518
  assignment,
1528
1519
  userId,
1529
- cardIds,
1530
1520
  weights,
1531
1521
  status,
1532
1522
  studentName