From 93dd9bf3f45fbd17f2daff004150565ded0a6a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Tue, 6 Feb 2024 14:19:23 +0100 Subject: [PATCH] uklonjen umjetan delay --- app/lib/actions/locationActions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/actions/locationActions.ts b/app/lib/actions/locationActions.ts index 4db8fe0..e094c9d 100644 --- a/app/lib/actions/locationActions.ts +++ b/app/lib/actions/locationActions.ts @@ -84,7 +84,7 @@ export const updateOrAddLocation = withUser(async (user:AuthenticatedUser, locat }); } - await asyncTimeout(1000); + // await asyncTimeout(1000); if(yearMonth) await gotoHome(yearMonth); @@ -116,7 +116,7 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu }) .toArray(); - await asyncTimeout(1000); + // await asyncTimeout(1000); return(locations); }) @@ -137,7 +137,7 @@ export const fetchLocationById = withUser(async (user:AuthenticatedUser, locatio return(null); } - await asyncTimeout(1000); + // await asyncTimeout(1000); return(billLocation); }) @@ -153,7 +153,7 @@ export const deleteLocationById = withUser(async (user:AuthenticatedUser, locati // find a location with the given locationID const post = await dbClient.collection("lokacije").deleteOne({ _id: locationID, userId }); - await asyncTimeout(1000); + // await asyncTimeout(1000); await gotoHome(yearMonth) }) \ No newline at end of file