fix: remove more unwraps
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
found more unwraps that needed to be changed to ?
This commit is contained in:
parent
d8541b2eea
commit
1cda34d16b
6 changed files with 17 additions and 14 deletions
|
@ -1,5 +1,9 @@
|
|||
use crate::{
|
||||
api::v1::auth::check_access_token, error::Error, structs::{Channel, Member}, utils::{get_auth_header, order_channels}, Data
|
||||
Data,
|
||||
api::v1::auth::check_access_token,
|
||||
error::Error,
|
||||
structs::{Channel, Member},
|
||||
utils::{get_auth_header, order_channels},
|
||||
};
|
||||
use ::uuid::Uuid;
|
||||
use actix_web::{HttpRequest, HttpResponse, get, post, web};
|
||||
|
@ -41,8 +45,12 @@ pub async fn get(
|
|||
|
||||
let channels_ordered = order_channels(channels).await?;
|
||||
|
||||
data.set_cache_key(format!("{}_channels", guild_uuid), channels_ordered.clone(), 1800)
|
||||
.await?;
|
||||
data.set_cache_key(
|
||||
format!("{}_channels", guild_uuid),
|
||||
channels_ordered.clone(),
|
||||
1800,
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(HttpResponse::Ok().json(channels_ordered))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue