Remove logging
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user