Controller service completed for Vizualization

This commit is contained in:
2025-05-28 18:29:17 +05:30
parent 6b5bee879b
commit 7fb2a6bd2d
18 changed files with 2895 additions and 16 deletions

View File

@@ -29,6 +29,7 @@ export const RecentlyAdded = async (data: IRecentData) => {
try {
const { userId, organization, role } = data;
const userExisting = await existingUser(userId, organization);
console.log('userExisting: ', userExisting);
if (!userExisting) return { status: "User not found" };
const userRecentData = await UsersDataModel(organization)
.findOne({ userId: userId, isArchive: false })