mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 21:05:15 +00:00
chore: lint
This commit is contained in:
parent
b7815df134
commit
2e18359dad
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
const sponsorsOC = await fetch('https://opencollective.com/sharkey/tiers/sponsor/all.json').then((response) => response.json());
|
const sponsorsOC = await fetch('https://opencollective.com/sharkey/tiers/sponsor/all.json').then((response) => response.json());
|
||||||
|
|
||||||
// Merge both together into one array and make sure it only has Active subscriptions
|
// Merge both together into one array and make sure it only has Active subscriptions
|
||||||
const allSponsors = [...backers, ...sponsorsOC].filter(sponsor => sponsor.isActive == true);
|
const allSponsors = [...backers, ...sponsorsOC].filter(sponsor => sponsor.isActive === true);
|
||||||
|
|
||||||
// Remove possible duplicates
|
// Remove possible duplicates
|
||||||
totalSponsors = [...new Map(allSponsors.map(v => [v.profile, v])).values()];
|
totalSponsors = [...new Map(allSponsors.map(v => [v.profile, v])).values()];
|
||||||
|
|
Loading…
Reference in a new issue