Skip to content

Commit

Permalink
Merge pull request #358 from MerginMaps/fix-admin-deactivate-account
Browse files Browse the repository at this point in the history
Fix: Deactivate account in admin
  • Loading branch information
MarcelGeo authored Jan 16, 2025
2 parents ce515e3 + a7196ad commit 3d6d3c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions web-app/packages/admin-lib/src/modules/admin/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export interface UsersParams extends PaginatedRequestParams {
export type UsersResponse = PaginatedResponse<UserResponse>

export interface UpdateUserData {
is_admin: boolean
active: boolean
is_admin?: boolean
active?: boolean
}

export interface CreateUserData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ const changeStatusDialog = () => {
await adminStore.updateUser({
username: user.value.username,
data: {
active: !user.value.active,
is_admin: user.value.is_admin
active: !user.value.active
}
})
}
Expand Down Expand Up @@ -283,7 +282,6 @@ const switchAdminAccess = async () => {
await adminStore.updateUser({
username: user.value.username,
data: {
active: user.value.active,
is_admin: !user.value.is_admin
}
})
Expand Down

0 comments on commit 3d6d3c3

Please sign in to comment.