Skip to content

Commit

Permalink
🛠️: update postJobErrorReport and ShowFullJobResponse type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
itisAliRH committed Apr 9, 2024
1 parent e01096f commit f7e17b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions client/src/components/DatasetInformation/DatasetError.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { computed, onMounted, ref } from "vue";
import { type HDADetailed } from "@/api";
import { fetchDatasetDetails } from "@/api/datasets";
import { fetchJobCommonProblems, fetchJobDetails, JobDetails, JobInputSummary } from "@/api/jobs";
import { sendErrorReport } from "@/components/DatasetInformation/services";
import { fetchJobCommonProblems, fetchJobDetails, JobDetails, JobInputSummary, postJobErrorReport } from "@/api/jobs";
import { useMarkdown } from "@/composables/markdown";
import { useUserStore } from "@/stores/userStore";
import localize from "@/utils/localization";
Expand Down Expand Up @@ -95,13 +94,14 @@ async function submit(dataset: HDADetailed, userEmailJob?: string | null) {
const email = userEmailJob;
try {
const res = await sendErrorReport(dataset.creating_job, {
const { data } = await postJobErrorReport({
job_id: dataset.creating_job,
dataset_id: dataset.id,
message: message.value,
email,
});
resultMessages.value = res as string[][];
resultMessages.value = data.messages;
} catch (error: any) {
resultMessages.value = error;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed } from "vue";
import { ShowFullJobResponse } from "./services";
import { type ShowFullJobResponse } from "@/api/jobs";
interface Props {
jobStderr?: string;
Expand Down

0 comments on commit f7e17b6

Please sign in to comment.