uklonjen umjetan delay
This commit is contained in:
@@ -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<BillingLocation>("lokacije").deleteOne({ _id: locationID, userId });
|
||||
|
||||
await asyncTimeout(1000);
|
||||
// await asyncTimeout(1000);
|
||||
|
||||
await gotoHome(yearMonth)
|
||||
})
|
||||
Reference in New Issue
Block a user