mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Fix change password script.
This commit is contained in:
parent
6923ea4d1d
commit
2a2ce0e98d
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue