This commit is contained in:
zadit
2024-12-04 21:40:36 +07:00
parent 529a7e505c
commit 198d0b3053
9 changed files with 517 additions and 109 deletions

View File

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