From bbb862abef58d41c4b256f25524e03e3d7d97808 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 2 Oct 2019 19:40:43 -0300 Subject: [PATCH] fixes --- app/services/site_service.rb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/site_service.rb b/app/services/site_service.rb index 9d6516a..8c94669 100644 --- a/app/services/site_service.rb +++ b/app/services/site_service.rb @@ -37,7 +37,7 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do def build_deploys Site::DEPLOYS.map { |deploy| "Deploy#{deploy.capitalize}" } - .each do |deploy| + .each do |deploy| next if site.deploys.find_by type: deploy site.deploys.build type: deploy diff --git a/config/locales/en.yml b/config/locales/en.yml index ae00dcd..d660955 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -256,7 +256,7 @@ en: posts: 'View and edit posts' title: 'Sites' enqueued: 'Waiting for build' - enqueue: 'Build' + enqueue: 'Publish all changes' failed: 'Failed!' build_log: 'Read log' invitations: