lenra-io / server

GNU Affero General Public License v3.0
6 stars 0 forks source link

[Task] Get current user id from listener #578

Open taorepoara opened 8 months ago

taorepoara commented 8 months ago

What should be done

When running a listener, we can't get the current user Mongo id.

Technical recommandation

Add the context in the listeners params.

taorepoara commented 8 months ago

One way have the user id in the listeners is to get me from a view context and give as props of the listeners.

taorepoara commented 7 months ago

The transaction problem should be resolved with https://github.com/lenra-io/server/issues/495

The @me don't seems to be useful aside of that...