From c5dc093d27e47df2f998a7c2793396107ce16889 Mon Sep 17 00:00:00 2001
From: Christopher Guindon <chris.guindon@eclipse-foundation.org>
Date: Fri, 7 Jul 2023 14:19:15 -0400
Subject: [PATCH] [temp-fix] - wrong committer showing on homepage

Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
---
 js/src/featured-projects-committer.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/js/src/featured-projects-committer.js b/js/src/featured-projects-committer.js
index 44e013db..aeea0c49 100644
--- a/js/src/featured-projects-committer.js
+++ b/js/src/featured-projects-committer.js
@@ -1,17 +1,17 @@
 (function($, document) {
 
   $.ajax({
-      url: "https://newsroom.eclipse.org/api/edition?options[orderby][nid]=DESC&pagesize=1",
+      url: "https://newsroom.eclipse.org/api/edition/39472",
       type: 'GET',
       dataType: 'json',
       success: function(data, status) {
 
-          if (data.editions[0].featured_committer !== undefined && data.editions[0].featured_committer.length !== 0) {
+          if (data.featured_committer !== undefined && data.featured_committer.length !== 0) {
 
               $(".featured-committer-project-section").css('display', 'block');
               $(".featured-committer-section").css('display', 'block');
 
-              const committer = data.editions[0].featured_committer
+              const committer = data.featured_committer
               var image = "<div class='col-xs-8 padding-0 eclipsefdn-user-display-circle'><img class='img img-responsive' src=" + committer.picture + "></div>"
               var content = " <div class='col-xs-16'>" +
               "<h3 class='h4'><strong>" + committer.name + "</strong></h3>" +
@@ -24,12 +24,12 @@
 
               $('#commiters-container').append(result);
           }
-          if (data.editions[0].featured_project !== undefined && data.editions[0].featured_project.length !== 0) {
+          if (data.featured_project !== undefined && data.featured_project.length !== 0) {
 
               $(".featured-committer-project-section").css('display', 'block');
               $(".featured-project-section").css('display', 'block');
 
-              const project = data.editions[0].featured_project;
+              const project = data.featured_project;
               var project_id = project.id;
               var project_id = project_id.replace(/\./g, "_");
 
-- 
GitLab