mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 18:51:47 +00:00
Fix linting
This commit is contained in:
@ -31,7 +31,7 @@ export const checkProjectAccess = (requiredPermission: IKeyRole) => async (userI
|
|||||||
const projectMapper = (project: IProject | IMemberProject) => {
|
const projectMapper = (project: IProject | IMemberProject) => {
|
||||||
const baseProject = {id: project._id, name: project.name, validationKey: project.validationKey,
|
const baseProject = {id: project._id, name: project.name, validationKey: project.validationKey,
|
||||||
defaults: project.defaults,};
|
defaults: project.defaults,};
|
||||||
if ('role' in project) return { ...baseProject, role: project.role };
|
if ("role" in project) return { ...baseProject, role: project.role };
|
||||||
|
|
||||||
return baseProject;
|
return baseProject;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user