New version API collaboration and tested for Project

This commit is contained in:
2025-05-29 19:11:26 +05:30
parent 72faf6782e
commit 2bb3814d75
25 changed files with 526 additions and 88 deletions

View File

@@ -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;
};
};