Frédéric Guillot
7a8061fc72
Fix regression introduced in PR #2402
2024-02-25 20:45:34 -08:00
jvoisin
bca84bac8b
Use an update-where for MarkCategoryAsRead instead of a subquery
2024-02-25 17:50:30 -08:00
jvoisin
66e0eb1bd6
Reformat's ArchiveEntries's query for consistency's sake
...
And replace the `=ANY` with an `IN`
2024-02-25 17:50:30 -08:00
jvoisin
26d189917e
Simplify cleanupEntries' query
...
- `NOT (hash=ANY(%4))` can be expressed as `hash NOT IN $4`
- There is no need for a subquery operating on the same table,
moving the conditions out is equivalent.
2024-02-25 17:50:30 -08:00
jvoisin
ccd3955bf4
Format GetReadTime's query for consistency's sake
2024-02-25 17:50:30 -08:00
Shizun Ge
65e2fddfb5
Use variables for the status in the entries table
2023-11-29 19:32:36 -08:00
Frédéric Guillot
e4285c2cba
Add API endpoint to update entry title and content
2023-10-06 23:27:19 -07:00
Frédéric Guillot
5774323f2e
Add API endpoint to flush history
2023-10-05 22:19:08 -07:00
Frédéric Guillot
c0e954f19d
Implement structured logging using log/slog package
2023-09-24 22:37:33 -07:00
Frédéric Guillot
48f6885f44
Add generic webhook integration
2023-09-09 13:11:42 -07:00
Frédéric Guillot
168a870c02
Move internal packages to an internal folder
...
For reference: https://go.dev/doc/go1.4#internalpackages
2023-08-10 20:29:34 -07:00