swadhinbiswas

[email protected]
2026-02-16 02:26:11 +0600 committed NaN years ago
eae83ca
commit eae83ca
1 file changed
+1 -1
▼src/pages/api/user/notification-preferences.ts
+1-1
10
10
11
11
// Generate a simple ID
12
12
function generateId(): string {
13
- return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
13
+ return `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
14
14
}
15
15
16
16
import { withErrorHandler } from "@/lib/errors";
17
17