Skip to content

Commit

Permalink
feat(user): fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
dipendraupreti committed May 24, 2024
1 parent fd15500 commit e66cc84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/user/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ declare module "@dzangolab/fastify-config" {
users?: typeof userHandlers.users;
};
};
isProfileComplete?: (
isProfileVerified?: (
userId: string,
request: FastifyRequest
) => Promise<boolean>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class ProfileVerificationClaim extends BooleanClaim {
super({
key: "pv",
fetchValue: async (userId) => {
const { isProfileComplete } = fastify.config.user;
const { isProfileVerified } = fastify.config.user;

return isProfileComplete
? await isProfileComplete(userId, request)
return isProfileVerified
? await isProfileVerified(userId, request)
: true;
},
defaultMaxAgeInSeconds: 0,
Expand Down

0 comments on commit e66cc84

Please sign in to comment.