Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fix change password script.
Mike Cao2a2ce0e98d07
diff --git a/package.json b/package.jsonindex 5f81741ca..f1e0871e3 100644--- a/package.json+++ b/package.json@@ -34,6 +34,7 @@"check-lang": "node scripts/check-lang.js","download-country-names": "node scripts/download-country-names.js","download-language-names": "node scripts/download-language-names.js",+ "change-password": "node scripts/change-password.js","loadtest": "node scripts/loadtest.js","loadtest:medium": "node scripts/loadtest.js --weight=medium","loadtest:heavy": "node scripts/loadtest.js --weight=heavy --verbose",diff --git a/scripts/change-password.js b/scripts/change-password.jsindex 7a792741b..5e3de42f6 100644--- a/scripts/change-password.js+++ b/scripts/change-password.js@@ -87,7 +87,7 @@ const getUsernameAndPassword = async () => {await changePassword(username, password);console.log('Password changed for user', chalk.greenBright(username));} catch (error) {- if (error.message.includes('RecordNotFound')) {+ if (error.meta.cause.includes('Record to update not found')) {console.log('Account not found:', chalk.redBright(username));} else {throw error;