fix import
Signed-off-by: Ben Hall <ben@benh.codes>
This commit is contained in:
parent
0f2e892408
commit
4541cfea98
@ -1,4 +1,4 @@
|
||||
export const IMPORT_API_URL = env.IMPORT_API_URL || "https://import-api.ticketsbot.cloud"
|
||||
export const IMPORT_URL = env.IMPORT_URL || "https://import-api.ticketsbot.cloud"
|
||||
export const API_URL = env.API_URL || "https://api.ticketsbot.cloud"
|
||||
export const PLACEHOLDER_DOCS_URL = "https://docs.ticketsbot.cloud/setup/placeholders.html"
|
||||
|
||||
|
@ -118,7 +118,7 @@
|
||||
import { setDefaultHeaders } from "../includes/Auth.svelte";
|
||||
import { notify, notifyError, notifySuccess } from "../js/util";
|
||||
import axios from "axios";
|
||||
import { IMPORT_API_URL } from "../js/constants";
|
||||
import { IMPORT_URL } from "../js/constants";
|
||||
setDefaultHeaders();
|
||||
|
||||
export let currentRoute;
|
||||
@ -170,7 +170,7 @@
|
||||
}, 60 * 1000);
|
||||
|
||||
if (transcriptFileInput.files.length > 0) {
|
||||
const presignRes = await axios.get(`${IMPORT_API_URL}/api/${guildId}/import/presign?file_size=${transcriptFileInput.files[0].size}`);
|
||||
const presignRes = await axios.get(`${IMPORT_URL}/api/${guildId}/import/presign?file_size=${transcriptFileInput.files[0].size}`);
|
||||
if (presignRes.status !== 200) {
|
||||
notifyError(`Failed to upload transcripts: ${presignRes.data.error}`);
|
||||
queryLoading = false;
|
||||
@ -196,7 +196,7 @@
|
||||
|
||||
if (dataFileInput.files.length > 0) {
|
||||
const res = await axios.post(
|
||||
`${IMPORT_API_URL}/api/${guildId}/import`,
|
||||
`${IMPORT_URL}/api/${guildId}/import`,
|
||||
frmData,
|
||||
{
|
||||
headers: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user