Closed NorDar closed 4 months ago
Test via Postman, locally Before: Space 12: Owner: 2, CTs:[5], Plants[9] User 4: owner of plant 8
POST localhost:8080/spaces/12/members/4
Add User 4 to space 12 -> user 4 now caretaker of plant 9
Online test: Before: Space 42: owner 22, CTs [], plants [45] user 46: owner of [50, 48]
POST /spaces/42/members/46 --> 200 OK
Add user 46 to space 42 -> user 46 now ct of plant 45, user 46 now member of space 42
This was probably my error while testing and looking at the db directly via DataGrip. It seems to work as intended from the backend side.
Adding plant to space does not add it to caretakers already assigned to space
Might be the reason for: