Commit 585fc75
fix(store): handle Count errors in seedData to fail fast on DB issues (#90)
The Count() calls for users and OAuth clients in seedData() previously
ignored errors, which could cause incorrect seeding behavior if the
database connection fails (e.g., creating duplicate admin users).
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent e3bd48e commit 585fc75
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
185 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
0 commit comments