Commit 0afd640
feat: add SHORT_UUID_LENGTH configuration and update UsersService to utilize it
- Introduced SHORT_UUID_LENGTH in the config schema with validation for values between 16 and 64.
- Updated UsersService to retrieve SHORT_UUID_LENGTH from the configuration and use it in the createNanoId method for generating unique IDs.
Co-authored-by: Dima Murzin <18555945+murzindima@users.noreply.github.com>1 parent c56a8ed commit 0afd640
File tree
2 files changed
+12
-2
lines changed- src
- common/config/app-config
- modules/users
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
737 | 742 | | |
738 | 743 | | |
739 | 744 | | |
740 | | - | |
| 745 | + | |
741 | 746 | | |
742 | 747 | | |
743 | 748 | | |
| |||
0 commit comments