Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Account deletion hook #833

Open
Rojoss opened this issue Apr 11, 2022 · 2 comments
Open

[FEATURE] Account deletion hook #833

Rojoss opened this issue Apr 11, 2022 · 2 comments

Comments

@Rojoss
Copy link

Rojoss commented Apr 11, 2022

It would be great if a hook for account deletion can be added.
This way we can clean up any storage objects that are not directly associated to the account.

We've tried setting up a hook for RegisterAfterDeleteStorageObjects but this is never fired when deleting an account even though the storage objects from the account get deleted.
So currently there is no way to run some code when an account is deleted.

@novabyte
Copy link
Member

@Rojoss What situations do you have where you'd have storage objects owned by a user that are not marked as owned by that user in the storage engine?

@Rojoss
Copy link
Author

Rojoss commented Apr 15, 2022

@novabyte For example we store a list of users that assisted you which is stored on an object owned by the user that got assisted.
Another example would be for custom logic when an account is deleted, let's say we have a (non realtime) turn based match between 2 players and 1 player deletes his account, then the match needs be be destroyed too and the other player should be notified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants