Skip to content

Commit cca1545

Browse files
committed
refactor: added back check for keychain
TICKET: WP-5417
1 parent 419045f commit cca1545

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/express/src/clientRoutes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,10 @@ export async function handleKeychainChangePassword(
10401040
reqId,
10411041
});
10421042

1043+
if (!keychain) {
1044+
throw new ApiResponseError(`Keychain ${req.params.id} not found`, 404);
1045+
}
1046+
10431047
const updatedKeychain = coin.keychains().updateSingleKeychainPassword({
10441048
keychain,
10451049
oldPassword,

0 commit comments

Comments
 (0)