update
This commit is contained in:
@@ -120,7 +120,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching blog posts:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -142,7 +141,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching blog post:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -164,7 +162,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching featured posts:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -186,7 +183,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching latest posts:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -208,7 +204,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching popular posts:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -230,7 +225,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching related posts:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -252,7 +246,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return Array.isArray(data) ? data : data.results || [];
|
||||
} catch (error) {
|
||||
console.error('Error fetching blog categories:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -274,7 +267,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching categories with posts:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -296,7 +288,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching blog category:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -318,7 +309,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return Array.isArray(data) ? data : data.results || [];
|
||||
} catch (error) {
|
||||
console.error('Error fetching blog tags:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -340,7 +330,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching posts by tag:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -362,7 +351,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return Array.isArray(data) ? data : data.results || [];
|
||||
} catch (error) {
|
||||
console.error('Error fetching blog authors:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -384,7 +372,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching posts by author:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -406,7 +393,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return Array.isArray(data) ? data : data.results || [];
|
||||
} catch (error) {
|
||||
console.error('Error fetching comments:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
@@ -429,7 +415,6 @@ export const blogService = {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error creating comment:', error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user