fixing MONGO BUG
This commit is contained in:
parent
e04a9dd3b1
commit
0a053ba249
2 changed files with 3 additions and 2 deletions
|
@ -21,12 +21,12 @@ services:
|
||||||
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
|
||||||
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
|
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- dbdata:/data/db
|
- new:/data/db
|
||||||
networks:
|
networks:
|
||||||
- appnet
|
- appnet
|
||||||
networks:
|
networks:
|
||||||
appnet:
|
appnet:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
volumes:
|
volumes:
|
||||||
dbdata:
|
new:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
|
@ -59,6 +59,7 @@ export class CrawlerService {
|
||||||
const urls = await page.$$eval('a', links => links.map(link => link.href));
|
const urls = await page.$$eval('a', links => links.map(link => link.href));
|
||||||
const urlsList = urls.filter((url) => url.startsWith('http'));
|
const urlsList = urls.filter((url) => url.startsWith('http'));
|
||||||
console.log(urlsList);
|
console.log(urlsList);
|
||||||
|
// URLS //
|
||||||
|
|
||||||
await browser.close();
|
await browser.close();
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue