fix requests target url
This commit is contained in:
parent
596efd79db
commit
e2f66516bf
@ -7,7 +7,7 @@ import { QuizSettings } from "@model/settingsData";
|
||||
|
||||
let SESSIONS = "";
|
||||
|
||||
const domain = location.hostname ==="localhost" ? "https://s.hbpn.link" : ""
|
||||
const domain = location.hostname === "hbpn.link" ? "" : "https://s.hbpn.link";
|
||||
|
||||
export const publicationMakeRequest = ({ url, body }: any) => {
|
||||
return axios(url, {
|
||||
@ -89,7 +89,7 @@ export function sendAnswer({ questionId, body, qid }: any) {
|
||||
},
|
||||
];
|
||||
formData.append("answers", JSON.stringify(answers));
|
||||
console.log("QID", qid)
|
||||
console.log("QID", qid);
|
||||
formData.append("qid", qid);
|
||||
|
||||
return publicationMakeRequest({
|
||||
@ -112,7 +112,7 @@ export function sendFile({ questionId, body, qid }: any) {
|
||||
|
||||
formData.append("answers", JSON.stringify(answers));
|
||||
formData.append(body.name, body.file);
|
||||
console.log("QID", qid)
|
||||
console.log("QID", qid);
|
||||
formData.append("qid", qid);
|
||||
|
||||
return publicationMakeRequest({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user