creation thread and comments in socket

This commit is contained in:
2025-05-27 18:00:35 +05:30
parent 2c28ffe9aa
commit 694d50b278
10 changed files with 583 additions and 59 deletions

View File

@@ -88,3 +88,13 @@ export const existingProjectById = async (
});
return projectData;
};
export const existingProjectByIdWithoutUser = async (
projectId: string,
organization: string,
) => {
const projectData = await projectModel(organization).findOne({
_id: projectId,
isArchive: false,
});
return projectData;
};