returning org obj in update user endpoint

This commit is contained in:
2025-05-22 15:30:00 +05:30
parent 3b7170da0a
commit 5ff67b751c

View File

@@ -109,7 +109,8 @@ export async function updateUser(
})
.select(
"_id pid orgId firstName lastName name email role avatar status createdAt createdBy lastLogin"
);
)
.populate({ path: "orgId", select: "_id pid name avatar" });
}
export async function updateUserInternal(