mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-26 05:44:24 +01:00
fix: make previous MR compile
This commit is contained in:
parent
13052388a7
commit
2231a69b4c
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ pub async fn set_room_visibility_route(
|
|||
) -> Result<set_room_visibility::v3::Response> {
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
|
||||
if !db.rooms.exists(&body.room_id)? {
|
||||
if !services().rooms.metadata.exists(&body.room_id)? {
|
||||
// Return 404 if the room doesn't exist
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::NotFound,
|
||||
|
@ -117,7 +117,7 @@ pub async fn get_room_visibility_route(
|
|||
body: Ruma<get_room_visibility::v3::IncomingRequest>,
|
||||
) -> Result<get_room_visibility::v3::Response> {
|
||||
|
||||
if !db.rooms.exists(&body.room_id)? {
|
||||
if !services().rooms.metadata.exists(&body.room_id)? {
|
||||
// Return 404 if the room doesn't exist
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::NotFound,
|
||||
|
|
Loading…
Reference in a new issue