Commit e7dfac68 authored by beardedwarrior's avatar beardedwarrior
Browse files

added a couple changes for the jekyll files

parent 1cb57c7b
...@@ -76,10 +76,10 @@ class UpdateSiteProposals extends Command ...@@ -76,10 +76,10 @@ class UpdateSiteProposals extends Command
$prop->name = $proposal->title; $prop->name = $proposal->title;
$prop->{'gitlab-url'} = $proposal->gitlab_url; $prop->{'gitlab-url'} = $proposal->gitlab_url;
$prop->{'local-url'} = '#'; $prop->{'local-url'} = '#';
$prop->{'donate-url'} = '#'; $prop->{'donate-url'} = url("projects/{$proposal->payment_id}/donate");
$prop->percentage = 0; $prop->percentage = $proposal->percentage_funded;
$prop->amount = $proposal->target_amount; $prop->amount = $proposal->target_amount;
$prop->{'amount-funded'} = $proposal->target_amount; $prop->{'amount-funded'} = $proposal->amount_received;
$prop->author = $proposal->gitlab_username; $prop->author = $proposal->gitlab_username;
$prop->date = $proposal->gitlab_created_at->format('F j, Y'); $prop->date = $proposal->gitlab_created_at->format('F j, Y');
$responseProposals[] = $prop; $responseProposals[] = $prop;
...@@ -99,12 +99,12 @@ class UpdateSiteProposals extends Command ...@@ -99,12 +99,12 @@ class UpdateSiteProposals extends Command
$prop->name = $proposal->title; $prop->name = $proposal->title;
$prop->{'gitlab-url'} = $proposal->gitlab_url; $prop->{'gitlab-url'} = $proposal->gitlab_url;
$prop->{'local-url'} = '#'; $prop->{'local-url'} = '#';
$prop->milestones = 4; $prop->milestones = 0;
$prop->{'milestones-completed'} = 4; $prop->{'milestones-completed'} = 0;
$prop->{'milestones-percentage'} = 100; $prop->{'milestones-percentage'} = 0;
$prop->percentage = 0; $prop->percentage = $proposal->percentage_funded;
$prop->amount = $proposal->target_amount; $prop->amount = $proposal->target_amount;
$prop->{'amount-funded'} = $proposal->target_amount; $prop->{'amount-funded'} = $proposal->amount_received;
$prop->author = $proposal->gitlab_username; $prop->author = $proposal->gitlab_username;
$prop->date = $proposal->gitlab_created_at->format('F j, Y'); $prop->date = $proposal->gitlab_created_at->format('F j, Y');
$responseProposals[] = $prop; $responseProposals[] = $prop;
......
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
namespace App\Console; 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\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
...@@ -24,8 +29,16 @@ class Kernel extends ConsoleKernel ...@@ -24,8 +29,16 @@ class Kernel extends ConsoleKernel
*/ */
protected function schedule(Schedule $schedule) protected function schedule(Schedule $schedule)
{ {
// $schedule->command('inspire') $schedule->command(fetchMergeRequests::class)
// ->hourly(); ->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 ...@@ -61,8 +61,8 @@ class WalletOld
/** /**
* Scans the monero blockchain for transactions for the payment ids * Scans the monero blockchain for transactions for the payment ids
* *
* @param $blockheight * @param int $blockheight
* @param $paymentIDs * @param Collection $paymentIDs
* *
* @return array|Transaction * @return array|Transaction
*/ */
......
Supports Markdown
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