visuddhinanda 1 неделя назад
Родитель
Сommit
f8e71d3313

+ 1 - 1
dashboard-v6/src/components/discussion/DiscussionCount.tsx

@@ -25,7 +25,7 @@ const DiscussionCount = ({ courseId }: IWidget) => {
     if (sentId.length === 0) {
       return;
     }
-    const url = "/v2/discussion-count";
+    const url = "/api/v2/discussion-count";
     const data: IDiscussionCountRequest = {
       course_id: courseId ?? undefined,
       sentences: sentId.map((item) => item.split("-")),

+ 7 - 4
dashboard-v6/src/components/nissaya/NissayaAligner.tsx

@@ -63,10 +63,13 @@ const NissayaAligner = ({ sentencesId }: IWidget) => {
   useEffect(() => {
     if (!sentencesId) return;
 
-    post<ISentenceDiffRequest, ISentenceDiffResponse>("/v2/sent-in-channel", {
-      sentences: sentencesId,
-      channels: ["_System_Pali_VRI_"],
-    }).then((json) => {
+    post<ISentenceDiffRequest, ISentenceDiffResponse>(
+      "/api/v2/sent-in-channel",
+      {
+        sentences: sentencesId,
+        channels: ["_System_Pali_VRI_"],
+      }
+    ).then((json) => {
       if (!json.ok) return;
 
       const rows = [...json.data.rows].sort((a, b) => {