emeth-defi-automation / portfolio-management-platform

0 stars 1 forks source link

Users see actions and results for all wallet deletions #236

Open Gawc1uuu opened 3 months ago

Gawc1uuu commented 3 months ago

In the observedWalletsLiveStream function, users get actions for every wallet deletion, even if they aren't observing that wallet. This happens because we use a live query on the database to track changes in the wallet table. When a wallet is deleted, its edges are gone by the time we try to check if the user was observing it, so we can't filter these actions properly like we did for creation of a wallet. It can also create security risks.