Controller service completed for Vizualization
This commit is contained in:
@@ -98,10 +98,12 @@ export const GetAllProjects = async (data: GetProjectsInterface) => {
|
||||
if (!existingUser) return { status: "User not found" };
|
||||
const projectDatas = await projectModel(organization)
|
||||
.find({
|
||||
createdBy:userId,
|
||||
createdBy: userId,
|
||||
isArchive: false,
|
||||
})
|
||||
.select("_id projectName createdBy thumbnail createdAt projectUuid createdAt");
|
||||
.select(
|
||||
"_id projectName createdBy thumbnail createdAt projectUuid createdAt"
|
||||
);
|
||||
if (projectDatas) return { status: "Success", Datas: projectDatas };
|
||||
} catch (error: unknown) {
|
||||
return { status: error };
|
||||
|
||||
Reference in New Issue
Block a user