Commit e7dfac68 authored by beardedwarrior's avatar beardedwarrior

added a couple changes for the jekyll files

parent 1cb57c7b
......@@ -76,10 +76,10 @@ class UpdateSiteProposals extends Command
$prop->name = $proposal->title;
$prop->{'gitlab-url'} = $proposal->gitlab_url;
$prop->{'local-url'} = '#';
$prop->{'donate-url'} = '#';
$prop->percentage = 0;
$prop->{'donate-url'} = url("projects/{$proposal->payment_id}/donate");
$prop->percentage = $proposal->percentage_funded;
$prop->amount = $proposal->target_amount;
$prop->{'amount-funded'} = $proposal->target_amount;
$prop->{'amount-funded'} = $proposal->amount_received;
$prop->author = $proposal->gitlab_username;
$prop->date = $proposal->gitlab_created_at->format('F j, Y');
$responseProposals[] = $prop;
......@@ -99,12 +99,12 @@ class UpdateSiteProposals extends Command
$prop->name = $proposal->title;
$prop->{'gitlab-url'} = $proposal->gitlab_url;
$prop->{'local-url'} = '#';
$prop->milestones = 4;
$prop->{'milestones-completed'} = 4;
$prop->{'milestones-percentage'} = 100;
$prop->percentage = 0;
$prop->milestones = 0;
$prop->{'milestones-completed'} = 0;
$prop->{'milestones-percentage'} = 0;
$prop->percentage = $proposal->percentage_funded;
$prop->amount = $proposal->target_amount;
$prop->{'amount-funded'} = $proposal->target_amount;
$prop->{'amount-funded'} = $proposal->amount_received;
$prop->author = $proposal->gitlab_username;
$prop->date = $proposal->gitlab_created_at->format('F j, Y');
$responseProposals[] = $prop;
......
......@@ -2,6 +2,11 @@
namespace App\Console;
use App\Console\Commands\fetchMergeRequests;
use App\Console\Commands\GenerateAddresses;
use App\Console\Commands\ProcessProposals;
use App\Console\Commands\UpdateSiteProposals;
use App\Console\Commands\walletNotify;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
......@@ -24,8 +29,16 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->command(fetchMergeRequests::class)
->everyMinute();
$schedule->command(GenerateAddresses::class)
->everyMinute();
$schedule->command(ProcessProposals::class)
->everyMinute();
$schedule->command(UpdateSiteProposals::class)
->everyMinute();
$schedule->command(walletNotify::class)
->everyMinute();
}
/**
......
......@@ -61,8 +61,8 @@ class WalletOld
/**
* Scans the monero blockchain for transactions for the payment ids
*
* @param $blockheight
* @param $paymentIDs
* @param int $blockheight
* @param Collection $paymentIDs
*
* @return array|Transaction
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment