From 3c9ae521b161b933c36d13edcc22bd57b06e8160 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Thu, 16 May 2024 20:59:38 -0400 Subject: [PATCH] Remove trailing comma from artist id field --- src/upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload.rs b/src/upload.rs index 2ca036c..00c28d7 100644 --- a/src/upload.rs +++ b/src/upload.rs @@ -35,7 +35,7 @@ async fn validate_artist_ids(artist_ids: Field<'static>) -> Result, Ser // Extract the artist id from the field match artist_ids.text().await { Ok(artist_ids) => { - let artist_ids = artist_ids.split(','); + let artist_ids = artist_ids.trim_end_matches(',').split(','); artist_ids.map(|artist_id| { // Parse the artist id as an integer