fix: fix type assersion error

This commit is contained in:
lemmyMwaura
2024-08-08 10:06:55 +03:00
parent 8e0b4254b1
commit 8479c406a5
@@ -267,7 +267,7 @@ export const secretSharingServiceFactory = ({
message: "Something went wrong" message: "Something went wrong"
}); });
const isMatch = await bcrypt.compare(password, sharedSecret.password as string); const isMatch = await bcrypt.compare(password, sharedSecret.password);
if (!isMatch) return undefined; if (!isMatch) return undefined;
// reduce the view count when the password matches (will be returned to the client). // reduce the view count when the password matches (will be returned to the client).