lib/zold/node/front.rb in zold-0.4.3 vs lib/zold/node/front.rb in zold-0.4.4

- old
+ new

@@ -108,13 +108,11 @@ wallet = wallets.find(id) request.body.rewind body = request.body.read if wallet.exists? && File.read(wallet.path) == body status 304 - return JSON.pretty_generate( - version: VERSION, score: score.to_h - ) + return end cps = copies(id) cps.add(body, 'remote', Remotes::PORT, 0) require_relative '../commands/fetch' Zold::Fetch.new( @@ -125,9 +123,10 @@ modified = Zold::Merge.new( wallets: wallets, copies: cps.root, log: settings.log ).run([id.to_s]) cps.remove('remote', Remotes::PORT) + require_relative '../commands/push' modified.each do |m| Zold::Push.new( wallets: wallets, remotes: settings.remotes, log: settings.log ).run([m.to_s])