fixing MONGO BUG

This commit is contained in:
Kfir Dayan 2023-04-20 19:49:46 +03:00
parent e04a9dd3b1
commit 0a053ba249
2 changed files with 3 additions and 2 deletions

View file

@ -21,12 +21,12 @@ services:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
volumes:
- dbdata:/data/db
- new:/data/db
networks:
- appnet
networks:
appnet:
driver: bridge
volumes:
dbdata:
new:
driver: local

View file

@ -59,6 +59,7 @@ export class CrawlerService {
const urls = await page.$$eval('a', links => links.map(link => link.href));
const urlsList = urls.filter((url) => url.startsWith('http'));
console.log(urlsList);
// URLS //
await browser.close();
return {