mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
Create a relationship between services and tokens
This commit is contained in:
@@ -7,6 +7,7 @@ from app.models import (Service, User)
|
||||
|
||||
|
||||
def save_model_service(service, update_dict=None):
|
||||
print(update_dict)
|
||||
users_list = update_dict.get('users', []) if update_dict else getattr(service, 'users', [])
|
||||
if not users_list:
|
||||
error_msg = {'users': ['Missing data for required attribute']}
|
||||
|
||||
Reference in New Issue
Block a user