project changes in socket

This commit is contained in:
2025-05-17 18:02:09 +05:30
parent 611bffdaa9
commit 9be63d3459
6 changed files with 159 additions and 67 deletions

View File

@@ -99,6 +99,7 @@ export const GetAllProjects = async (data: GetProjectsInterface) => {
if (!existingUser) return { status: "User not found" };
const projectDatas = await projectModel(organization)
.find({
createdBy:userId,
isArchive: false,
})
.select("_id projectName createdBy thumbnail createdAt projectUuid");