mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for subscriptions
This commit is contained in:
parent
3a3ddc031c
commit
c1b6e2043e
@ -52,6 +52,7 @@ class SubscriptionCron
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private function loopSubscriptions()
|
||||
|
@ -51,6 +51,7 @@ class SchedulerCheck implements ShouldQueue
|
||||
try {
|
||||
Artisan::call('optimize');
|
||||
} catch (\Exception $e) {
|
||||
nlog($e->getMessage());
|
||||
nlog("I wasn't able to optimize.");
|
||||
}
|
||||
|
||||
|
@ -128,6 +128,7 @@ class SubscriptionService
|
||||
|
||||
$response = $this->triggerWebhook($context);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/* Starts the process to create a trial
|
||||
|
@ -18,6 +18,7 @@ use App\Utils\SystemHealth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
trait AppSetup
|
||||
{
|
||||
@ -36,6 +37,9 @@ trait AppSetup
|
||||
{
|
||||
$cached_tables = config('ninja.cached_tables');
|
||||
|
||||
if(request()->has('clear_cache'))
|
||||
Artisan::call('optimize');
|
||||
|
||||
foreach ($cached_tables as $name => $class) {
|
||||
if (request()->has('clear_cache') || !Cache::has($name) || $force) {
|
||||
|
||||
|
137
composer.lock
generated
137
composer.lock
generated
@ -51,16 +51,16 @@
|
||||
},
|
||||
{
|
||||
"name": "aws/aws-sdk-php",
|
||||
"version": "3.176.8",
|
||||
"version": "3.176.9",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/aws/aws-sdk-php.git",
|
||||
"reference": "776b944988167fa3d563d2cbc5fcb6763424a9f0"
|
||||
"reference": "17dc67514b148979994758fbfb54088a8a3393bf"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/776b944988167fa3d563d2cbc5fcb6763424a9f0",
|
||||
"reference": "776b944988167fa3d563d2cbc5fcb6763424a9f0",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/17dc67514b148979994758fbfb54088a8a3393bf",
|
||||
"reference": "17dc67514b148979994758fbfb54088a8a3393bf",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -135,9 +135,9 @@
|
||||
"support": {
|
||||
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
|
||||
"issues": "https://github.com/aws/aws-sdk-php/issues",
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.176.8"
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.176.9"
|
||||
},
|
||||
"time": "2021-04-05T18:16:29+00:00"
|
||||
"time": "2021-04-06T18:13:47+00:00"
|
||||
},
|
||||
{
|
||||
"name": "bacon/bacon-qr-code",
|
||||
@ -1851,27 +1851,26 @@
|
||||
},
|
||||
{
|
||||
"name": "fzaninotto/faker",
|
||||
"version": "dev-master",
|
||||
"version": "v1.9.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/fzaninotto/Faker.git",
|
||||
"reference": "5ffe7db6c80f441f150fc88008d64e64af66634b"
|
||||
"reference": "848d8125239d7dbf8ab25cb7f054f1a630e68c2e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/5ffe7db6c80f441f150fc88008d64e64af66634b",
|
||||
"reference": "5ffe7db6c80f441f150fc88008d64e64af66634b",
|
||||
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/848d8125239d7dbf8ab25cb7f054f1a630e68c2e",
|
||||
"reference": "848d8125239d7dbf8ab25cb7f054f1a630e68c2e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.3.3 || ^7.0 || ^8.0"
|
||||
"php": "^5.3.3 || ^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-intl": "*",
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.7",
|
||||
"squizlabs/php_codesniffer": "^2.9.2"
|
||||
},
|
||||
"default-branch": true,
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@ -1900,10 +1899,10 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/fzaninotto/Faker/issues",
|
||||
"source": "https://github.com/fzaninotto/Faker/tree/master"
|
||||
"source": "https://github.com/fzaninotto/Faker/tree/v1.9.2"
|
||||
},
|
||||
"abandoned": true,
|
||||
"time": "2020-12-11T09:59:14+00:00"
|
||||
"time": "2020-12-11T09:56:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "google/apiclient",
|
||||
@ -2750,16 +2749,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "v8.35.1",
|
||||
"version": "v8.36.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/framework.git",
|
||||
"reference": "d118c0df39e7524131176aaf76493eae63a8a602"
|
||||
"reference": "91c454715b81b9a39f718651d4e2f8104d45e7c2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/d118c0df39e7524131176aaf76493eae63a8a602",
|
||||
"reference": "d118c0df39e7524131176aaf76493eae63a8a602",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/91c454715b81b9a39f718651d4e2f8104d45e7c2",
|
||||
"reference": "91c454715b81b9a39f718651d4e2f8104d45e7c2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2914,7 +2913,7 @@
|
||||
"issues": "https://github.com/laravel/framework/issues",
|
||||
"source": "https://github.com/laravel/framework"
|
||||
},
|
||||
"time": "2021-03-30T21:34:17+00:00"
|
||||
"time": "2021-04-06T21:14:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/slack-notification-channel",
|
||||
@ -2979,16 +2978,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/socialite",
|
||||
"version": "v5.2.2",
|
||||
"version": "v5.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/socialite.git",
|
||||
"reference": "8d25d574b4f2005411c0b9cb527ef5e745c1b07d"
|
||||
"reference": "1960802068f81e44b2ae9793932181cf1cb91b5c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/socialite/zipball/8d25d574b4f2005411c0b9cb527ef5e745c1b07d",
|
||||
"reference": "8d25d574b4f2005411c0b9cb527ef5e745c1b07d",
|
||||
"url": "https://api.github.com/repos/laravel/socialite/zipball/1960802068f81e44b2ae9793932181cf1cb91b5c",
|
||||
"reference": "1960802068f81e44b2ae9793932181cf1cb91b5c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -3044,7 +3043,7 @@
|
||||
"issues": "https://github.com/laravel/socialite/issues",
|
||||
"source": "https://github.com/laravel/socialite"
|
||||
},
|
||||
"time": "2021-03-02T16:50:47+00:00"
|
||||
"time": "2021-04-06T14:38:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/tinker",
|
||||
@ -3755,28 +3754,27 @@
|
||||
},
|
||||
{
|
||||
"name": "league/omnipay",
|
||||
"version": "dev-master",
|
||||
"version": "v3.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/omnipay.git",
|
||||
"reference": "e9439db0633ba988e6f6cdd029fad38aad73f9f6"
|
||||
"reference": "1ba7c8a3312cf2342458b99c9e5b86eaae44aed2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/omnipay/zipball/e9439db0633ba988e6f6cdd029fad38aad73f9f6",
|
||||
"reference": "e9439db0633ba988e6f6cdd029fad38aad73f9f6",
|
||||
"url": "https://api.github.com/repos/thephpleague/omnipay/zipball/1ba7c8a3312cf2342458b99c9e5b86eaae44aed2",
|
||||
"reference": "1ba7c8a3312cf2342458b99c9e5b86eaae44aed2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"omnipay/common": "^3",
|
||||
"php": "^7.2|^8.0",
|
||||
"php": "^7.2",
|
||||
"php-http/discovery": "^1.12",
|
||||
"php-http/guzzle7-adapter": "^0.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"omnipay/tests": "^3"
|
||||
},
|
||||
"default-branch": true,
|
||||
"type": "metapackage",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@ -3807,9 +3805,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/thephpleague/omnipay/issues",
|
||||
"source": "https://github.com/thephpleague/omnipay/tree/master"
|
||||
"source": "https://github.com/thephpleague/omnipay/tree/v3.1.0"
|
||||
},
|
||||
"time": "2021-03-12T09:17:59+00:00"
|
||||
"time": "2020-09-22T14:02:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "livewire/livewire",
|
||||
@ -4560,21 +4558,21 @@
|
||||
},
|
||||
{
|
||||
"name": "omnipay/common",
|
||||
"version": "dev-master",
|
||||
"version": "v3.0.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/omnipay-common.git",
|
||||
"reference": "e1ebc22615f14219d31cefdf62d7036feb228b1c"
|
||||
"reference": "0d1f4486c1c873537ac030d37c7ce2986c4de1d2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/omnipay-common/zipball/e1ebc22615f14219d31cefdf62d7036feb228b1c",
|
||||
"reference": "e1ebc22615f14219d31cefdf62d7036feb228b1c",
|
||||
"url": "https://api.github.com/repos/thephpleague/omnipay-common/zipball/0d1f4486c1c873537ac030d37c7ce2986c4de1d2",
|
||||
"reference": "0d1f4486c1c873537ac030d37c7ce2986c4de1d2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"moneyphp/money": "^3.1",
|
||||
"php": "^5.6|^7|^8",
|
||||
"php": "^5.6|^7",
|
||||
"php-http/client-implementation": "^1",
|
||||
"php-http/discovery": "^1.2.1",
|
||||
"php-http/message": "^1.5",
|
||||
@ -4589,7 +4587,6 @@
|
||||
"suggest": {
|
||||
"league/omnipay": "The default Omnipay package provides a default HTTP Adapter."
|
||||
},
|
||||
"default-branch": true,
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@ -4641,9 +4638,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/thephpleague/omnipay-common/issues",
|
||||
"source": "https://github.com/thephpleague/omnipay-common/tree/master"
|
||||
"source": "https://github.com/thephpleague/omnipay-common/tree/v3.0.5"
|
||||
},
|
||||
"time": "2020-12-13T12:53:48+00:00"
|
||||
"time": "2020-08-20T18:22:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "omnipay/paypal",
|
||||
@ -5415,16 +5412,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpseclib/phpseclib",
|
||||
"version": "3.0.6",
|
||||
"version": "3.0.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpseclib/phpseclib.git",
|
||||
"reference": "906a5fafabe5e6ba51ef3dc65b2722a677908837"
|
||||
"reference": "d369510df0ebd5e1a5d0fe3d4d23c55fa87a403d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/906a5fafabe5e6ba51ef3dc65b2722a677908837",
|
||||
"reference": "906a5fafabe5e6ba51ef3dc65b2722a677908837",
|
||||
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/d369510df0ebd5e1a5d0fe3d4d23c55fa87a403d",
|
||||
"reference": "d369510df0ebd5e1a5d0fe3d4d23c55fa87a403d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -5506,7 +5503,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/phpseclib/phpseclib/issues",
|
||||
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.6"
|
||||
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.7"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -5522,7 +5519,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-03-10T13:58:31+00:00"
|
||||
"time": "2021-04-06T14:00:11+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pragmarx/google2fa",
|
||||
@ -6683,16 +6680,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sentry/sentry",
|
||||
"version": "3.2.0",
|
||||
"version": "3.2.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/getsentry/sentry-php.git",
|
||||
"reference": "899b0de58c1e01feb54829b3094af74252aff385"
|
||||
"reference": "fb4f83e6e2d718d1e5fbfe3a20cced83f47f040f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/getsentry/sentry-php/zipball/899b0de58c1e01feb54829b3094af74252aff385",
|
||||
"reference": "899b0de58c1e01feb54829b3094af74252aff385",
|
||||
"url": "https://api.github.com/repos/getsentry/sentry-php/zipball/fb4f83e6e2d718d1e5fbfe3a20cced83f47f040f",
|
||||
"reference": "fb4f83e6e2d718d1e5fbfe3a20cced83f47f040f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -6771,7 +6768,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/getsentry/sentry-php/issues",
|
||||
"source": "https://github.com/getsentry/sentry-php/tree/3.2.0"
|
||||
"source": "https://github.com/getsentry/sentry-php/tree/3.2.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -6783,7 +6780,7 @@
|
||||
"type": "custom"
|
||||
}
|
||||
],
|
||||
"time": "2021-03-03T11:54:34+00:00"
|
||||
"time": "2021-04-06T07:55:41+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sentry/sentry-laravel",
|
||||
@ -9620,16 +9617,16 @@
|
||||
},
|
||||
{
|
||||
"name": "turbo124/beacon",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/turbo124/beacon.git",
|
||||
"reference": "d48227fdfafc463cce055f36b149f9cb1d9b8f81"
|
||||
"reference": "22bc2c134efefd0f3c6c44b0c618cd4fa87b46d1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/turbo124/beacon/zipball/d48227fdfafc463cce055f36b149f9cb1d9b8f81",
|
||||
"reference": "d48227fdfafc463cce055f36b149f9cb1d9b8f81",
|
||||
"url": "https://api.github.com/repos/turbo124/beacon/zipball/22bc2c134efefd0f3c6c44b0c618cd4fa87b46d1",
|
||||
"reference": "22bc2c134efefd0f3c6c44b0c618cd4fa87b46d1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -9677,9 +9674,9 @@
|
||||
"turbo124"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/turbo124/beacon/tree/1.0.7"
|
||||
"source": "https://github.com/turbo124/beacon/tree/1.0.8"
|
||||
},
|
||||
"time": "2021-03-23T09:54:29+00:00"
|
||||
"time": "2021-04-07T08:16:59+00:00"
|
||||
},
|
||||
{
|
||||
"name": "turbo124/laravel-gmail",
|
||||
@ -10367,16 +10364,16 @@
|
||||
},
|
||||
{
|
||||
"name": "barryvdh/laravel-debugbar",
|
||||
"version": "v3.5.2",
|
||||
"version": "v3.5.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/barryvdh/laravel-debugbar.git",
|
||||
"reference": "cae0a8d1cb89b0f0522f65e60465e16d738e069b"
|
||||
"reference": "b8af309dea71eab3f2c942652969f518130228ee"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/cae0a8d1cb89b0f0522f65e60465e16d738e069b",
|
||||
"reference": "cae0a8d1cb89b0f0522f65e60465e16d738e069b",
|
||||
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/b8af309dea71eab3f2c942652969f518130228ee",
|
||||
"reference": "b8af309dea71eab3f2c942652969f518130228ee",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -10436,7 +10433,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/barryvdh/laravel-debugbar/issues",
|
||||
"source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.5.2"
|
||||
"source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.5.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -10444,7 +10441,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-06T14:21:44+00:00"
|
||||
"time": "2021-04-06T18:11:42+00:00"
|
||||
},
|
||||
{
|
||||
"name": "brianium/paratest",
|
||||
@ -11186,16 +11183,16 @@
|
||||
},
|
||||
{
|
||||
"name": "friendsofphp/php-cs-fixer",
|
||||
"version": "v2.18.4",
|
||||
"version": "v2.18.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
|
||||
"reference": "06f764e3cb6d60822d8f5135205f9d32b5508a31"
|
||||
"reference": "e0f6d05c8b157f50029ca6c65c19ed2694f475bf"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/06f764e3cb6d60822d8f5135205f9d32b5508a31",
|
||||
"reference": "06f764e3cb6d60822d8f5135205f9d32b5508a31",
|
||||
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/e0f6d05c8b157f50029ca6c65c19ed2694f475bf",
|
||||
"reference": "e0f6d05c8b157f50029ca6c65c19ed2694f475bf",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -11278,7 +11275,7 @@
|
||||
"description": "A tool to automatically fix PHP code style",
|
||||
"support": {
|
||||
"issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
|
||||
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.18.4"
|
||||
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.18.5"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -11286,7 +11283,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2021-03-20T14:52:33+00:00"
|
||||
"time": "2021-04-06T18:37:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "hamcrest/hamcrest-php",
|
||||
|
Loading…
Reference in New Issue
Block a user