Skip to content

Commit

Permalink
remove general user role
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 18, 2024
1 parent 890780f commit cc83600
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/containers/profile/account-details/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { z } from "zod";

export const accountDetailsSchema = UpdateUserSchema.and(
z.object({
role: z.enum([ROLES.ADMIN, ROLES.PARTNER, ROLES.GENERAL_USER]).optional(),
role: z.enum([ROLES.ADMIN, ROLES.PARTNER]).optional(),
}),
);
5 changes: 2 additions & 3 deletions shared/entities/users/roles.enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export enum ROLES {
ADMIN = 'admin',
PARTNER = 'partner',
GENERAL_USER = 'general_user',
ADMIN = "admin",
PARTNER = "partner",
}
2 changes: 1 addition & 1 deletion shared/entities/users/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class User extends BaseEntity {

@Column({
type: "enum",
default: ROLES.GENERAL_USER,
default: ROLES.PARTNER,
enum: ROLES,
enumName: "user_roles",
})
Expand Down

0 comments on commit cc83600

Please sign in to comment.