ok
This commit is contained in:
@@ -175,7 +175,7 @@ export const getAllCafeOwner = async (formData) => {
|
||||
const token = getLocalStorage("auth");
|
||||
if (token) {
|
||||
try {
|
||||
const response = await fetch(API_BASE_URL + "/user/get-admin", {
|
||||
const response = await fetch(API_BASE_URL + "/transaction/get-analytics", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -186,6 +186,7 @@ export const getAllCafeOwner = async (formData) => {
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
}
|
||||
const data = await response.json();
|
||||
console.log(data)
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error("Error updating user:", error);
|
||||
|
||||
Reference in New Issue
Block a user