feat: updated ui

This commit is contained in:
=
2025-05-15 00:56:53 +05:30
parent 3d2b2cbbab
commit 52f8c6adba
5 changed files with 89 additions and 27 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ type TUserServiceFactoryDep = {
| "createUserAction"
| "findUserEncKeyByUserId"
| "delete"
| "findAllMyAccounts"
>;
groupProjectDAL: Pick<TGroupProjectDALFactory, "findByUserId">;
orgMembershipDAL: Pick<TOrgMembershipDALFactory, "find" | "insertMany" | "findOne" | "updateById">;
@@ -140,7 +141,7 @@ export const userServiceFactory = ({
};
const getAllMyAccounts = async (email: string, userId: string) => {
const users = await userDAL.find({ email });
const users = await userDAL.findAllMyAccounts(email);
return users?.map((el) => ({ ...el, isMyAccount: el.id === userId }));
};