bugs cleared for the testing purpose

This commit is contained in:
2025-06-02 16:48:44 +05:30
parent 17727c1281
commit 09ea99098f
41 changed files with 117 additions and 163 deletions

View File

@@ -15,18 +15,14 @@ interface IProject {
createdAt: Date;
isViewed?: number;
}
interface searchProjectInterface {
interface SearchProjectInterface {
searchName: string;
userId: string;
organization: string;
}
interface RoleFilter {
isArchive: boolean;
createdBy?: string;
}
export const RecentlyAdded = async (data: IRecentData) => {
try {
const { userId, organization, role } = data;
const { userId, organization } = data;
const userExisting = await existingUser(userId, organization);
if (!userExisting) return { status: "User not found" };
const userRecentData = await UsersDataModel(organization)
@@ -54,7 +50,7 @@ export const RecentlyAdded = async (data: IRecentData) => {
return { status: error };
}
};
export const searchProject = async (data: searchProjectInterface) => {
export const searchProject = async (data: SearchProjectInterface) => {
try {
const { userId, organization, searchName } = data;
const userExisting = await existingUser(userId, organization);
@@ -70,7 +66,7 @@ export const searchProject = async (data: searchProjectInterface) => {
return { status: error };
}
};
export const searchTrashProject = async (data: searchProjectInterface) => {
export const searchTrashProject = async (data: SearchProjectInterface) => {
try {
const { userId, organization, searchName } = data;
const userExisting = await existingUser(userId, organization);