🔧 change "exists" parameter to "exist"

Change the parameter “exists” to “exist” in the verbosity of find user.
This commit is contained in:
Rafi Arrafif
2025-08-12 18:32:13 +07:00
parent a8a57ecce3
commit 27769773af
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ export const OAuthUserProvisionService = async (
const findUserResult = await findUserService({ const findUserResult = await findUserService({
identifier: providerId, identifier: providerId,
queryTarget: "providerId", queryTarget: "providerId",
options: { verbosity: "exists" }, options: { verbosity: "exist" },
}); });
if (findUserResult) { if (findUserResult) {

View File

@ -21,7 +21,7 @@ export const findUserService = async (payload: getUserDataService) => {
if (!repoFn) throw new AppError(503, "Repository handler not found"); if (!repoFn) throw new AppError(503, "Repository handler not found");
// Define verbosity levels // Define verbosity levels
const existsVerbosity = ["exists"].includes(payload.options.verbosity); const existsVerbosity = ["exist"].includes(payload.options.verbosity);
const fullVerbosity = ["full"].includes(payload.options.verbosity); const fullVerbosity = ["full"].includes(payload.options.verbosity);
const basicVerbosity = ["basic", "full"].includes( const basicVerbosity = ["basic", "full"].includes(
payload.options.verbosity payload.options.verbosity

View File

@ -4,7 +4,7 @@ export interface getUserDataService {
options: getUserDataOptions; options: getUserDataOptions;
} }
export interface getUserDataOptions { export interface getUserDataOptions {
verbosity: "exists" | "basic" | "full"; verbosity: "exist" | "basic" | "full";
include?: getUserDataIncludeOptions[]; include?: getUserDataIncludeOptions[];
} }
export type getUserDataIncludeOptions = "preference" | "roles"; export type getUserDataIncludeOptions = "preference" | "roles";