fix: resolved slow audit log list

This commit is contained in:
Akhil Mohan
2024-04-14 18:38:42 +05:30
parent d035403af1
commit 9e6641c058
4 changed files with 7 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
export const getLastMidnightDateISO = (last = 1) =>
`${new Date(new Date().setDate(new Date().getDate() - last)).toISOString().slice(0, 10)}T00:00:00Z`;
+1
View File
@@ -2,5 +2,6 @@
// Full credits goes to https://github.com/rayapps to those functions
// Code taken to keep in in house and to adjust somethings for our needs
export * from "./array";
export * from "./dates";
export * from "./object";
export * from "./string";