@speakableio/core 0.1.89 → 0.1.90

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.
@@ -2908,7 +2908,7 @@ var useUpdateStudentVocab = (page) => {
2908
2908
  } catch (error) {
2909
2909
  if (error instanceof Error && error.message === "not-found") {
2910
2910
  data.firstSeen = serverTimestamp2();
2911
- await api.setDoc(docPath, data);
2911
+ await api.setDoc(docPath, data, { merge: true });
2912
2912
  } else {
2913
2913
  console.log(error);
2914
2914
  }
@@ -2930,7 +2930,7 @@ var useUpdateStudentVocab = (page) => {
2930
2930
  } catch (error) {
2931
2931
  if (error instanceof Error && error.message === "not-found") {
2932
2932
  data.firstSeen = serverTimestamp2();
2933
- await api.setDoc(docPath, data);
2933
+ await api.setDoc(docPath, data, { merge: true });
2934
2934
  } else {
2935
2935
  console.log(error);
2936
2936
  }