mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-04 16:20:06 -04:00
sample_api_key uses create_service instead of sample_service
This commit is contained in:
@@ -100,7 +100,7 @@ def create_service(
|
||||
service.active = active
|
||||
service.research_mode = research_mode
|
||||
else:
|
||||
if user not in service.users:
|
||||
if user and user not in service.users:
|
||||
dao_add_user_to_service(service, user)
|
||||
|
||||
return service
|
||||
|
||||
Reference in New Issue
Block a user