mirror of
https://github.com/modrinth/code.git
synced 2026-09-04 22:10:15 +00:00
feat: add project_type filter to random projects endpoint (#6687)
* Fix random project being stale, add project_type filter * Avoid full scan * Add comment * Run prepare, fix v2 * Trigger ci recheck --------- Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
@@ -193,7 +193,10 @@ pub async fn random_projects_get(
|
||||
pool: web::Data<PgPool>,
|
||||
redis: web::Data<RedisPool>,
|
||||
) -> Result<HttpResponse, ApiError> {
|
||||
let count = v3::projects::RandomProjects { count: count.count };
|
||||
let count = v3::projects::RandomProjects {
|
||||
count: count.count,
|
||||
project_type: None,
|
||||
};
|
||||
|
||||
let response = v3::projects::random_projects_get(
|
||||
web::Query(count),
|
||||
|
||||
Reference in New Issue
Block a user