Merge branch 'branch-v2' into branch-1

This commit is contained in:
2025-05-17 10:13:58 +05:30
12 changed files with 353 additions and 133 deletions

View File

@@ -33,6 +33,7 @@ interface ProjectInterface {
userId: string;
organization: string;
}
export const createProject = async (data: CreateProjectInput) => {
try {
const { userId, thumbnail, sharedUsers, organization, projectUuid } = data;
@@ -41,7 +42,7 @@ export const createProject = async (data: CreateProjectInput) => {
return {
status: "user_not_found",
};
}
}
const projectExisting = await existingProject(
projectUuid,
organization,
@@ -122,7 +123,7 @@ export const DeleteProject = async (data: ProjectInterface) => {
{ isArchive: true, DeletedAt: new Date() },
{ new: true }
);
if (updateProject) return { status: "Success" };
if (updateProject) return { status: "Success",project: updateProject };
} catch (error: unknown) {
return { status: error };
}