feat: cron done, admin unfinished

This commit is contained in:
2025-05-31 06:02:48 -04:00
parent b8ce9ded76
commit a91469257b
8 changed files with 81 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
export const getCurrentUser = async () => {
// Simulate fetching user info from an API
return new Promise<{ username: string; isAdmin: boolean }>((resolve) => {
setTimeout(() => {
resolve({
username: "john_doe",
isAdmin: true, // change to false to simulate non-admin
});
}, 200);
});
};