lemmy/crates/api/src/local_user
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
..
notifications Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
add_admin.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
ban_person.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
block.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
change_password.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
change_password_after_reset.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
generate_totp_secret.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
get_captcha.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
list_banned.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
list_logins.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
list_media.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
login.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
logout.rs Change logout endpoint to return SuccessResponse (#4121) 2023-10-31 08:41:52 -04:00
mod.rs Adding listMedia endpoint, to view all your local image uploads. (#4509) 2024-03-26 12:06:11 -04:00
report_count.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
reset_password.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
save_settings.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
update_totp.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
validate_auth.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
verify_email.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00