do not commit environment role updates unless an update happened

This commit is contained in:
dandds 2018-12-12 13:09:48 -05:00
parent 8754a74613
commit a5009ec130

View File

@ -92,7 +92,9 @@ class Environments(object):
updated = True
db.session.add(env_role)
if updated:
db.session.commit()
return updated
@classmethod