diff --git a/packages/health-check/src/run.js b/packages/health-check/src/run.js index fdabdea9..95a7b5a1 100644 --- a/packages/health-check/src/run.js +++ b/packages/health-check/src/run.js @@ -1,3 +1,5 @@ +const { getYesterdayISOString } = require("./utils"); + require("yargs/yargs")(process.argv.slice(2)).command( "$0 ", "Skynet portal health checks", @@ -31,7 +33,10 @@ require("yargs/yargs")(process.argv.slice(2)).command( checks: await Promise.all(checks.map((check) => new Promise(check))), }; - // read before writing to make sure no external changes are overwritten - db.read().get(type).push(entry).write(); + db.read() // read before writing to make sure no external changes are overwritten + .get(type) // get the list of records of given type + .push(entry) // insert new record + .remove(({ date }) => date < getYesterdayISOString()) // drop old records + .write(); } ).argv; diff --git a/packages/webapp/package.json b/packages/webapp/package.json index f827991f..f2f85400 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -11,7 +11,7 @@ "gatsby": "2.31.1", "gatsby-image": "2.10.0", "gatsby-plugin-manifest": "2.11.0", - "gatsby-plugin-matomo": "0.8.3", + "gatsby-plugin-matomo": "0.9.0", "gatsby-plugin-react-helmet": "3.9.0", "gatsby-plugin-remove-serviceworker": "1.0.0", "gatsby-plugin-robots-txt": "1.5.5", @@ -37,7 +37,7 @@ "devDependencies": { "cypress": "6.3.0", "cypress-file-upload": "5.0.2", - "eslint": "7.18.0", + "eslint": "7.19.0", "eslint-config-prettier": "7.2.0", "eslint-plugin-cypress": "2.11.2", "eslint-plugin-react": "7.22.0", diff --git a/setup-scripts/setup-server.sh b/setup-scripts/setup-server.sh index b31b7668..e9e865fe 100755 --- a/setup-scripts/setup-server.sh +++ b/setup-scripts/setup-server.sh @@ -10,7 +10,7 @@ source /home/user/.bashrc # Add SSH keys and set SSH configs sudo cp /home/user/skynet-webportal/setup-scripts/support/ssh_config /etc/ssh/ssh_config mkdir -p /home/user/.ssh -cat /home/user/skynet-webportal/setup-scripts/support/authorized_keys >> /home/user/.ssh/authorized_keys +# cat /home/user/skynet-webportal/setup-scripts/support/authorized_keys >> /home/user/.ssh/authorized_keys # Install apt packages sudo apt-get update