Commit acb356e
committed
refactor(api): remove unused currentPreferences from limit service
This refactoring removes the unused currentPreferences parameter from the UserPreferenceLimitService and its implementation.
The checkUserContentPreferencesLimits method signature has been updated in both the interface and the concrete implementation.
The custom updater in data_operation_registry.dart no longer performs an unnecessary database read to fetch the current preferences, improving efficiency.
This change simplifies the code and aligns it with the stateless validation logic, where only the final proposed state (updatedPreferences) is needed for limit checks.1 parent 0e49173 commit acb356e
File tree
3 files changed
+3
-13
lines changed- lib/src
- registry
- services
3 files changed
+3
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | 398 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 399 | + | |
| 400 | + | |
408 | 401 | | |
409 | 402 | | |
410 | 403 | | |
| |||
416 | 409 | | |
417 | 410 | | |
418 | 411 | | |
419 | | - | |
420 | 412 | | |
421 | 413 | | |
422 | 414 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
0 commit comments