Remove logging

This commit is contained in:
FlorianSpeicher
2025-06-14 21:47:11 +02:00
parent 468fd496fc
commit 14ee20fd2e

View File

@@ -6,7 +6,6 @@ import RatingSubmitType from "../../components/RatingSubmit";
export const fetchItemList = async () => {
const response = await fetch('http://localhost:8085/article/all');
console.log("API Response:", response);
if (!response.ok) {
throw new Error('Fehler beim Laden der Items');
}
@@ -33,7 +32,6 @@ export const submitRating = async (ratingData: RatingSubmitType) => {
export const fetchRatingList = async (itemId: string) => {
const response = await fetch('http://localhost:8085/review/all?uuid=' + itemId);
console.log("API Response:", response);
if (!response.ok) {
throw new Error('Fehler beim Laden der Items');
}
@@ -127,7 +125,6 @@ export const submitRegister = async (registerData: AccountType) => {
export const fetchCustomer = async (userId: number) => {
const response = await fetch('http://localhost:8085/customer?id=' + userId);
console.log("API Response:", response);
if (!response.ok) {
throw new Error('Fehler beim Laden des Customers');
}
@@ -147,7 +144,6 @@ export const deleteAccount = async (userId: number) => {
export const fetchOrders = async (customerId: number) => {
const response = await fetch('http://localhost:8085/order/all?sutomerId=' + customerId);
console.log("API Response:", response);
if (!response.ok) {
throw new Error('Fehler beim Laden des Customers');
}