mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Remove snake_case.
This commit is contained in:
parent
e1f99a7d01
commit
a91386434d
21 changed files with 86 additions and 100 deletions
|
|
@ -11,8 +11,8 @@ export interface TeamUserRequestQuery {
|
|||
|
||||
export interface TeamUserRequestBody {
|
||||
email: string;
|
||||
role_id: string;
|
||||
team_user_id?: string;
|
||||
roleId: string;
|
||||
teamUserId?: string;
|
||||
}
|
||||
|
||||
export default async (
|
||||
|
|
@ -41,7 +41,7 @@ export default async (
|
|||
return unauthorized(res, 'You must be the owner of this team.');
|
||||
}
|
||||
|
||||
const { email, role_id: roleId } = req.body;
|
||||
const { email, roleId: roleId } = req.body;
|
||||
|
||||
// Check for User
|
||||
const user = await getUser({ username: email });
|
||||
|
|
@ -59,9 +59,9 @@ export default async (
|
|||
if (await canUpdateTeam(userId, teamId)) {
|
||||
return unauthorized(res, 'You must be the owner of this team.');
|
||||
}
|
||||
const { team_user_id } = req.body;
|
||||
const { teamUserId } = req.body;
|
||||
|
||||
await deleteTeamUser(team_user_id);
|
||||
await deleteTeamUser(teamUserId);
|
||||
|
||||
return ok(res);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue