🔧 change "exists" parameter to "exist"
Change the parameter “exists” to “exist” in the verbosity of find user.
This commit is contained in:
@ -21,7 +21,7 @@ export const findUserService = async (payload: getUserDataService) => {
|
||||
if (!repoFn) throw new AppError(503, "Repository handler not found");
|
||||
|
||||
// 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 basicVerbosity = ["basic", "full"].includes(
|
||||
payload.options.verbosity
|
||||
|
||||
@ -4,7 +4,7 @@ export interface getUserDataService {
|
||||
options: getUserDataOptions;
|
||||
}
|
||||
export interface getUserDataOptions {
|
||||
verbosity: "exists" | "basic" | "full";
|
||||
verbosity: "exist" | "basic" | "full";
|
||||
include?: getUserDataIncludeOptions[];
|
||||
}
|
||||
export type getUserDataIncludeOptions = "preference" | "roles";
|
||||
|
||||
Reference in New Issue
Block a user