diff --git a/app/controllers/api/v0/projects_controller.rb b/app/controllers/api/v0/projects_controller.rb index 1adc9b6..3b801ef 100644 --- a/app/controllers/api/v0/projects_controller.rb +++ b/app/controllers/api/v0/projects_controller.rb @@ -26,7 +26,7 @@ # if organization exists if !organization.nil? # if organization is funder - if organization.organisation_type == (OrganisationType.find_by() name: constant("organisation_types.funder"))) + if organization.organisation_type == (OrganisationType.find_by( name: constant("organisation_types.funder")) # if organization has only 1 template if organization.dmptemplates.length == 1 # set template id