From f3234a6b5eedd6d6e804e4412905cc60f336c9a8 Mon Sep 17 00:00:00 2001 From: Emma Date: Fri, 28 Jan 2022 18:04:34 -0500 Subject: [PATCH] fix v1 parity issue: `local-` removed from mod_id field (#283) --- src/routes/v1/mods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/v1/mods.rs b/src/routes/v1/mods.rs index 91c6166e..947fb246 100644 --- a/src/routes/v1/mods.rs +++ b/src/routes/v1/mods.rs @@ -56,7 +56,7 @@ pub async fn mod_search( .hits .into_iter() .map(|x| ResultSearchMod { - mod_id: x.project_id.clone(), + mod_id: format!("local-{}", x.project_id.clone()), slug: x.slug, author: x.author.clone(), title: x.title,