remove console logs
This commit is contained in:
@@ -17,8 +17,6 @@ async function fetchAPI(endpoint: string, method: string = 'GET', body?: object)
|
|||||||
body: body ? JSON.stringify(body) : null
|
body: body ? JSON.stringify(body) : null
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`${BASE_URL}${endpoint}`, body, method, token);
|
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
if (endpoint != '/api' && response.status == 401) {
|
if (endpoint != '/api' && response.status == 401) {
|
||||||
authStore.set({
|
authStore.set({
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
let { config, tracks, id } = $props();
|
let { config, tracks, id } = $props();
|
||||||
let editedConfig = { ...config['event'] };
|
let editedConfig = { ...config['event'] };
|
||||||
editedConfig.sessions = JSON.stringify(editedConfig.sessions);
|
editedConfig.sessions = JSON.stringify(editedConfig.sessions);
|
||||||
console.log(editedConfig);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form method="POST" action="?/event">
|
<form method="POST" action="?/event">
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ export const actions = {
|
|||||||
},
|
},
|
||||||
restart: async ({ request }) => {
|
restart: async ({ request }) => {
|
||||||
const id = (await request.formData()).get('id') as string;
|
const id = (await request.formData()).get('id') as string;
|
||||||
console.log(id);
|
|
||||||
await restartService(+id);
|
await restartService(+id);
|
||||||
},
|
},
|
||||||
stop: async ({ request }) => {
|
stop: async ({ request }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user