ok banget

This commit is contained in:
zadit
2024-10-30 03:32:48 +07:00
parent 1ecc6db645
commit 5a2b9b2f86
18 changed files with 244 additions and 130 deletions

View File

@@ -173,11 +173,11 @@ export async function getMyTransactions(shopId, demand) {
console.error("Error:", error);
}
}
export async function getTransactions(shopId, demand) {
export async function getTransactionsFromCafe(shopId, demand) {
try {
const token = getLocalStorage("auth");
const response = await fetch(
`${API_BASE_URL}/transaction/get-transactions/${shopId}?demandLength=${demand}`,
`${API_BASE_URL}/transaction/get-transactions-from-cafe/${shopId}?demandLength=${demand}`,
{
method: "GET",
headers: {