Files
twenty/packages/twenty-server
Melvin Jariwala 23499735b4 fix: Resolve "Can't delete an account" issue (#9232) (#9238)
### Summary

This pull request addresses the issue described in #9232, where
attempting to delete a user account results in a `TypeError: Cannot read
properties of undefined (reading 'dataSourceService')`.

### Changes Made

- Fixed the `this` context issue in the `deleteUserFromWorkspace` method
by ensuring it is correctly bound.
- Updated the `deleteUser` method to use a bound function when calling
`deleteUserFromWorkspace`.

### Linked Issue

This pull request fixes #9232.

### Additional Notes

- Please review the changes carefully to ensure no unintended side
effects in the user or workspace deletion process.
- Suggestions for further improvement are welcome.

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
Co-authored-by: Weiko <corentin@twenty.com>
2025-01-02 14:14:28 +01:00
..
2024-09-18 17:35:08 +02:00
2024-12-19 15:24:49 +01:00
2024-12-12 15:46:48 +00:00
2024-12-12 15:46:48 +00:00
2024-09-20 11:02:52 +02:00
2024-10-05 00:23:23 +02:00
2024-12-11 19:23:51 +01:00