Skip to content

Commit

Permalink
fix(backend): Missing deleteSelfEnabled from User (#4139)
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef authored Sep 10, 2024
1 parent 0fd784f commit b97b2c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-phones-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/backend": minor
---

Bug fix: Introducing missing `deleteSelfEnabled` from User.
1 change: 1 addition & 0 deletions packages/backend/src/api/resources/JSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export interface UserJSON extends ClerkResourceJSON {
last_active_at: number | null;
create_organization_enabled: boolean;
create_organizations_limit: number | null;
delete_self_enabled: boolean;
}

export interface VerificationJSON extends ClerkResourceJSON {
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/src/api/resources/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class User {
readonly lastActiveAt: number | null,
readonly createOrganizationEnabled: boolean,
readonly createOrganizationsLimit: number | null = null,
readonly deleteSelfEnabled: boolean,
) {}

static fromJSON(data: UserJSON): User {
Expand Down Expand Up @@ -71,6 +72,7 @@ export class User {
data.last_active_at,
data.create_organization_enabled,
data.create_organizations_limit,
data.delete_self_enabled,
);
}

Expand Down

0 comments on commit b97b2c1

Please sign in to comment.