fix(lint): fix some lint issues

This commit is contained in:
lemmyMwaura
2024-08-06 19:25:04 +03:00
parent 3c64359597
commit fb719a9383
5 changed files with 23 additions and 17 deletions
@@ -1,5 +1,5 @@
import bcrypt from "bcrypt";
import { z } from "zod";
import bcrypt from "bcrypt"
import { SecretSharingSchema } from "@app/db/schemas";
import { SecretSharingAccessType } from "@app/lib/types";
@@ -124,11 +124,11 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
hashedHex,
orgId: req.permission?.orgId
});
if (!sharedSecret) {
return { isValid: false };
}
if (sharedSecret.password) {
const isMatch = await bcrypt.compare(password, sharedSecret.password);
return { isValid: isMatch };