fix(module_access): eslint error fix of unsafe argument. changed the query to use "omit" instead of include
This commit is contained in:
parent
c972150a8a
commit
517598fec6
|
|
@ -14,16 +14,9 @@ export abstract class AbstractUserService {
|
|||
where: { email },
|
||||
include: {
|
||||
user_module_access: {
|
||||
select: {
|
||||
dashboard: true,
|
||||
employee_list: true,
|
||||
employee_management: true,
|
||||
personal_profile: true,
|
||||
timesheets: true,
|
||||
timesheets_approval: true,
|
||||
ticket: true,
|
||||
ticket_management: true,
|
||||
chatbot: true,
|
||||
omit: {
|
||||
id: true,
|
||||
user_id: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user