lemmy/crates/api_crud/src
Dessalines d075acce43
Make all single-fetch database calls return an Option. (#4617)
- Diesel ordinarily throws an error when no results are returned for a
  single fetch, which is a bit confusing. This PR ensures that the
  missing value cases are all caught, and wrapped with new LemmyErrors,
  rather than diesel errors.
- Fixes #4601
2024-04-16 14:48:15 +02:00
..
comment Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
community Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
custom_emoji Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
post Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
private_message Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
site Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
user Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
lib.rs Rewrite remaining federation actions, get rid of PerformCrud trait (#3794) 2023-08-02 12:52:41 -04:00