fix edit event to approve

This commit is contained in:
Peter Maquiran
2024-11-07 10:51:58 +01:00
parent f0b4ada550
commit 652252e478
12 changed files with 39 additions and 25 deletions
+3 -2
View File
@@ -7,12 +7,13 @@ export class UserLoginMapper{
RefreshToken: input.data.refreshToken,
Authorization: input.data.authorization,
Email: input.data.user.wxeMail,
FullName: input.data.user.wxeMail,
FullName: input.data.user.wxFullName,
RoleDescription: input.data.user.role,
RoleID: input.data.user.roleId,
UserId: input.data.user.wxUserId,
UserPermissions: input.data.permissions,
Profile: ''
Profile: '',
UserPhoto: input.data.user?.userPhoto
}
}
}
@@ -29,6 +29,7 @@ const UserLoginOutputSchema = z.object({
RoleID: z.number(),
Profile: z.string(), // You can further define the Profile if you have more details
UserPermissions: z.array(z.number()), // Same as above, you can define more details if needed
UserPhoto: z.string().optional()
});