We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb3c58f commit 4c3dae6Copy full SHA for 4c3dae6
index.ts
@@ -134,7 +134,7 @@ export default class UserSoftDelete extends AdminForthPlugin {
134
return {ok: false, error: "You cannot deactivate your own account"}
135
}
136
137
- const newUser = { ...oldUser, [this.options.activeFieldName]: false };
+ const newUser = { [this.options.activeFieldName]: false };
138
139
await this.adminforth.updateResourceRecord({
140
resource: this.resourceConfig,
0 commit comments