added update foe user project list when joining
This commit is contained in:
parent
fd32392b42
commit
4b08085d63
1 changed files with 2 additions and 0 deletions
|
@ -145,7 +145,9 @@ def joinProject(token, projectId):
|
|||
return bad_request("User is already member in Project")
|
||||
|
||||
project.membersId.append(str(user.key().id()))
|
||||
user.projects_id_list.append(str(project.key().id()))
|
||||
|
||||
db.put(user)
|
||||
db.put(project)
|
||||
db.save
|
||||
|
||||
|
|
Loading…
Reference in a new issue