File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export async function getOSName(address: string): Promise<string> {
103103 {
104104 headers : {
105105 Accept : 'application/json' ,
106- 'X-API-KEY ' : process . env . OPENSEA_API_KEY ,
106+ 'x-api-key ' : process . env . OPENSEA_API_KEY ,
107107 } ,
108108 }
109109 )
Original file line number Diff line number Diff line change @@ -1088,14 +1088,20 @@ export class ArtIndexerBot {
10881088
10891089 // Add projects without listings if any exist
10901090 if ( projectsWithoutListings . length > 0 ) {
1091- const noListingsText = projectsWithoutListings
1092- . map ( ( p ) => {
1093- const projectUrl = p . slug
1094- ? getProjectSlugUrl ( p . slug )
1095- : getProjectUrl ( p . contractAddress , p . projectId )
1096- return `[${ p . name } ](${ projectUrl } )`
1097- } )
1098- . join ( ' • ' )
1091+ const firstFive = projectsWithoutListings . slice ( 0 , 5 )
1092+ const noListingsText =
1093+ firstFive
1094+ . map ( ( p ) => {
1095+ const projectUrl = p . slug
1096+ ? getProjectSlugUrl ( p . slug )
1097+ : getProjectUrl ( p . contractAddress , p . projectId )
1098+ return `[${ p . name } ](${ projectUrl } )`
1099+ } )
1100+ . join ( ' • ' ) +
1101+ ( projectsWithoutListings . length > 5
1102+ ? ` and ${ projectsWithoutListings . length - 5 } more`
1103+ : '' )
1104+
10991105 embedContent . addFields ( {
11001106 name : 'Unavailable (No Current Listings)' ,
11011107 value : noListingsText ,
You can’t perform that action at this time.
0 commit comments