uklonjen umjetan delay

This commit is contained in:
2024-02-06 14:19:23 +01:00
parent f0581eb533
commit 93dd9bf3f4

View File

@@ -84,7 +84,7 @@ export const updateOrAddLocation = withUser(async (user:AuthenticatedUser, locat
}); });
} }
await asyncTimeout(1000); // await asyncTimeout(1000);
if(yearMonth) await gotoHome(yearMonth); if(yearMonth) await gotoHome(yearMonth);
@@ -116,7 +116,7 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu
}) })
.toArray(); .toArray();
await asyncTimeout(1000); // await asyncTimeout(1000);
return(locations); return(locations);
}) })
@@ -137,7 +137,7 @@ export const fetchLocationById = withUser(async (user:AuthenticatedUser, locatio
return(null); return(null);
} }
await asyncTimeout(1000); // await asyncTimeout(1000);
return(billLocation); return(billLocation);
}) })
@@ -153,7 +153,7 @@ export const deleteLocationById = withUser(async (user:AuthenticatedUser, locati
// find a location with the given locationID // find a location with the given locationID
const post = await dbClient.collection<BillingLocation>("lokacije").deleteOne({ _id: locationID, userId }); const post = await dbClient.collection<BillingLocation>("lokacije").deleteOne({ _id: locationID, userId });
await asyncTimeout(1000); // await asyncTimeout(1000);
await gotoHome(yearMonth) await gotoHome(yearMonth)
}) })