Skip to content

Commit cbb7835

Browse files
Merge pull request #720 from ArtBlocks/lift-sales
fixing artbot ab500 set error
2 parents 795f8ec + bf3ffa5 commit cbb7835

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

src/Classes/APIBots/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
)

src/Classes/ArtIndexerBot.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)