Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cycle-five committed Feb 17, 2024
1 parent bfd2d9f commit 0cf730c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crack-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,16 @@ impl std::ops::Deref for Data {
}

impl Data {
/// Create a new Data, calls default
pub async fn downvote_track(&self, guild_id: GuildId, _track: &str) -> Result<(), Error> {
let play_log_id = PlayLog::get_last_played_by_guild_metadata(
&self.database_pool.as_ref().unwrap(),
self.database_pool.as_ref().unwrap(),
guild_id.into(),
)
.await?;
// let mut guild_cache_map = self.guild_cache_map.lock().unwrap();
TrackReaction::add_dislike(
&self.database_pool.as_ref().unwrap(),
self.database_pool.as_ref().unwrap(),
*play_log_id.first().unwrap() as i32,
)
.await?;
Expand Down

0 comments on commit 0cf730c

Please sign in to comment.