New version API collaboration and tested for Project
This commit is contained in:
@@ -22,6 +22,7 @@ export const existingUser = async (userId: string, organization: string) => {
|
||||
}
|
||||
const userData = await AuthModel(organization).findOne({
|
||||
_id: userId,
|
||||
isArchive: false,
|
||||
});
|
||||
return userData;
|
||||
};
|
||||
@@ -90,11 +91,11 @@ export const existingProjectById = async (
|
||||
};
|
||||
export const existingProjectByIdWithoutUser = async (
|
||||
projectId: string,
|
||||
organization: string,
|
||||
organization: string
|
||||
) => {
|
||||
const projectData = await projectModel(organization).findOne({
|
||||
_id: projectId,
|
||||
isArchive: false,
|
||||
});
|
||||
return projectData;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user