Compare commits
1 Commits
29e6494e11
...
1431cd2fbc
| Author | SHA1 | Date | |
|---|---|---|---|
| 1431cd2fbc |
@@ -807,11 +807,13 @@ async fn add_artist(
|
|||||||
if body.name.is_none() && body.mbid.is_none() {
|
if body.name.is_none() && body.mbid.is_none() {
|
||||||
return Err(ApiError::BadRequest("provide name or mbid".into()));
|
return Err(ApiError::BadRequest("provide name or mbid".into()));
|
||||||
}
|
}
|
||||||
|
let allowed = state.config.read().await.allowed_secondary_types.clone();
|
||||||
let summary = shanty_watch::add_artist(
|
let summary = shanty_watch::add_artist(
|
||||||
state.db.conn(),
|
state.db.conn(),
|
||||||
body.name.as_deref(),
|
body.name.as_deref(),
|
||||||
body.mbid.as_deref(),
|
body.mbid.as_deref(),
|
||||||
&state.mb_client,
|
&state.mb_client,
|
||||||
|
&allowed,
|
||||||
Some(user_id),
|
Some(user_id),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user