fix: endpoint export from main

This commit is contained in:
Torsten Dittmann committed 2023-02-24 16:24:41 +05:30
1 parent 89ea4a84e3
commit 5bac253fcb
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -50,4 +50,4 @@ const sdkForProject = {
users: new Users(clientProject)
};
export { sdkForConsole, sdkForProject, setProject, endpoint };
export { sdkForConsole, sdkForProject, setProject };
@@ -11,7 +11,7 @@
InputText
} from '$lib/elements/forms';
import { addNotification } from '$lib/stores/notifications';
import { sdkForConsole, endpoint } from '$lib/stores/sdk';
import { sdkForConsole } from '$lib/stores/sdk';
import { Unauthenticated } from '$lib/layout';
import FormList from '$lib/elements/forms/formList.svelte';
import { Dependencies } from '$lib/constants';
@@ -51,7 +51,7 @@
async function invite() {
try {
disabled = true;
const res = await fetch(`${endpoint}/account/invite`, {
const res = await fetch(`${sdkForConsole.client.config.endpoint}/account/invite`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'