Skip to content

Commit

Permalink
headless new
Browse files Browse the repository at this point in the history
  • Loading branch information
Creiger committed Oct 22, 2023
1 parent 238cbf6 commit 4f73ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/clubs/clubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const fetchMatches = async (app: Application) => {
const matchTypes = ['club_private'];
const eaUrl = 'https://proclubs.ea.com/api/nhl/clubs/matches';
const clubs = (<any> await app.service('clubs').find({query: {fetchData: true, $select: ['clubId']}}))?.map((club: any) => club.clubId);
const browser = await puppeteer.launch({headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox']});
const browser = await puppeteer.launch({headless: 'new', args: ['--no-sandbox', '--disable-setuid-sandbox']});
for (const clubId of clubs) {
for (const matchType of matchTypes) {
const clubUrl = `${eaUrl}?platform=common-gen5&matchType=${matchType}&clubIds=${clubId}`;
Expand Down

0 comments on commit 4f73ba7

Please sign in to comment.