Commit 6ffbb8b
fix: register PushNotificationService as scoped, not singleton
PushNotificationService injects TimePlanningPnDbContext (scoped) and
reads from it in the constructor. A singleton registration causes
"Cannot consume scoped service from singleton" at startup. Change to
AddScoped so it gets a fresh DbContext per request.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 58e8d25 commit 6ffbb8b
File tree
1 file changed
+1
-1
lines changed- eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments