eae83ca
commit eae83ca
1 file changed
+1 -1
Showing 1 changed file+1-1
▼src/pages/api/user/notification-preferences.ts
+1-1
| @@ -10,7 +10,7 @@ import { getDatabase, schema } from "@/db"; | ||
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 | |