Skip to content

Commit

Permalink
#27 typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 9, 2018
1 parent 04a17ae commit 361b184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mailanes.rb
Expand Up @@ -341,7 +341,7 @@
post '/copy-letter' do
letter = owner.lanes.letter(params[:id].to_i)
lane = owner.lanes.lane(params[:lane].to_i)
copy = lane.letters.add(letter.title + ' / COPY')
copy = lane.letters.add(letter.title)
copy.save_yaml(letter.yaml.to_yaml)
copy.save_liquid(letter.liquid)
redirect "/letter?id=#{copy.id}"
Expand Down
3 changes: 2 additions & 1 deletion objects/pipeline.rb
Expand Up @@ -80,7 +80,8 @@ def deactivate
def exhaust
@pgsql.exec('SELECT * FROM campaign WHERE active = true AND exhausted IS NOT NULL').each do |r|
campaign = Campaign.new(id: r['id'].to_i, pgsql: @pgsql, hash: r)
next if @pgsql.exec(Pipeline.query(campaign.id)).empty?
queue = @pgsql.exec(Pipeline.query(campaign.id)).count
next if queue.zero?
@pgsql.exec('UPDATE campaign SET exhausted = NULL WHERE id = $1', [campaign.id])
@tbot.notify(
campaign.yaml,
Expand Down

0 comments on commit 361b184

Please sign in to comment.