Commit c753f03
committed
refactor(web/notifications): consume markAllReadForUser from lib core
The notifications page's auto-mark-on-view logic was duplicating the
update SQL that the new lib/notifications core already encapsulates.
Web and API now share one path:
- GET /api/v1/notifications + POST .../mark-read (bots)
- notifications page on view (humans)
Behavior unchanged. The page still snapshots readAt before the mark
so unread items render with their unread style on this render.
Removed the inline `sql` template; left `desc` and `eq` in the
drizzle import — they're still used by the SELECT for presentation.1 parent 3a74cf3 commit c753f03
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments