format
This commit is contained in:
+5
-8
@@ -302,14 +302,11 @@ async fn add_track_inner(
|
|||||||
user_id: Option<i32>,
|
user_id: Option<i32>,
|
||||||
) -> WatchResult<bool> {
|
) -> WatchResult<bool> {
|
||||||
// Skip if a wanted_item with this recording MBID already exists
|
// Skip if a wanted_item with this recording MBID already exists
|
||||||
if let Some(mbid) = recording_mbid {
|
if let Some(mbid) = recording_mbid
|
||||||
if queries::wanted::find_by_mbid(conn, mbid)
|
&& queries::wanted::find_by_mbid(conn, mbid).await?.is_some()
|
||||||
.await?
|
{
|
||||||
.is_some()
|
tracing::debug!(title = title, mbid = mbid, "already in watchlist, skipping");
|
||||||
{
|
return Ok(false);
|
||||||
tracing::debug!(title = title, mbid = mbid, "already in watchlist, skipping");
|
|
||||||
return Ok(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let artist = queries::artists::upsert(conn, artist_name, artist_mbid).await?;
|
let artist = queries::artists::upsert(conn, artist_name, artist_mbid).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user