From bf247663297c4316ebe5d12b48a6f9149dbf46d8 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 12 Oct 2015 20:35:05 +0200 Subject: [PATCH] Hot payouts integrated in backend 5-min interval --- Backend/Program.cs | 6 ++---- Logic/Financial/Payouts.cs | 2 +- Site5/Pages/v5/Financial/Donate.aspx.cs | 3 --- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Backend/Program.cs b/Backend/Program.cs index b2ac823f..addcd3e0 100644 --- a/Backend/Program.cs +++ b/Backend/Program.cs @@ -368,10 +368,8 @@ namespace Swarmops.Backend try { - /*BotLog.Write(1, "FiveMinute", "Starting press release checker"); - TestTrace("Running PressReleaseChecker.Run()..."); - PressReleaseChecker.Run(); - TestTrace(" done.\r\n");*/ + BotLog.Write(1, "FiveMinute", "Starting automated payout processing"); + Payouts.PerformAutomated(); } catch (Exception e) { diff --git a/Logic/Financial/Payouts.cs b/Logic/Financial/Payouts.cs index dc51752d..402306e1 100644 --- a/Logic/Financial/Payouts.cs +++ b/Logic/Financial/Payouts.cs @@ -727,7 +727,7 @@ namespace Swarmops.Logic.Financial secondaryStrings["BitcoinAddress"] = person.BitcoinPayoutAddress; // potential rare race condition OutboundComm.CreateNotification (organization, NotificationResource.Bitcoin_PaidOut, primaryStrings, - secondaryStrings, People.FromSingle (Person.FromIdentity (1))); + secondaryStrings, People.FromSingle(person)); } // Create the master payout from its prototype diff --git a/Site5/Pages/v5/Financial/Donate.aspx.cs b/Site5/Pages/v5/Financial/Donate.aspx.cs index 61a90fa0..96429b4d 100644 --- a/Site5/Pages/v5/Financial/Donate.aspx.cs +++ b/Site5/Pages/v5/Financial/Donate.aspx.cs @@ -23,9 +23,6 @@ namespace Swarmops.Frontend.Pages.v5.Financial { this.PageAccessRequired = new Access (this.CurrentOrganization, AccessAspect.Participant); - // TEMP - //Payouts.PerformAutomated(); - /* TEMP TEMP TEMP - REMOVE THIS CODE */ /* Organization fwn = Organization.FromIdentity (2);