project ,trash events create in socket

This commit is contained in:
2025-06-02 09:47:33 +05:30
parent 2a7d465424
commit efe986502d
9 changed files with 229 additions and 50 deletions

View File

@@ -57,7 +57,6 @@ export const createProject = async (data: CreateProjectInput) => {
try {
const { thumbnail, sharedUsers, projectUuid, userId, organization } = data;
const userExisting = await existingUser(userId, organization);
console.log("userExisting: ", userExisting);
if (!userExisting) {
return {
status: "user_not_found",

View File

@@ -94,7 +94,7 @@ export const TrashDelete = async (data: IRestore) => {
{ new: true }
);
if (!DeleteTrashData) return { status: "Project Already Deleted" };
return { status: "Trash Project Delete successfully" };
return { status: "Success",data:DeleteTrashData };
} catch (error) {
return { status: error };
}