mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
77bd6224bf
@ -1 +1 @@
|
|||||||
5.8.44
|
5.8.45
|
@ -150,6 +150,19 @@ class TaskFilters extends QueryFilters
|
|||||||
return $this->builder->orderBy($sort_col[0], $dir);
|
return $this->builder->orderBy($sort_col[0], $dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function user_id(string $user = ''): Builder
|
||||||
|
{
|
||||||
|
if (strlen($user) == 0) {
|
||||||
|
return $this->builder;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->builder->where(function ($query) use ($user) {
|
||||||
|
$query->where('user_id', $this->decodePrimaryKey($user))
|
||||||
|
->orWhere('assigned_user_id', $this->decodePrimaryKey($user));
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function task_status(string $value = ''): Builder
|
public function task_status(string $value = ''): Builder
|
||||||
{
|
{
|
||||||
if (strlen($value) == 0) {
|
if (strlen($value) == 0) {
|
||||||
|
@ -48,7 +48,11 @@ trait SubscriptionHooker
|
|||||||
RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false,
|
RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return array_merge($body, json_decode($response->getBody(), true));
|
if($response_body = json_decode($response->getBody(), true))
|
||||||
|
return array_merge($body, $response_body);
|
||||||
|
|
||||||
|
return array_merge($body, ['message' => 'Success', 'status_code' => 200]);
|
||||||
|
|
||||||
} catch (ClientException $e) {
|
} catch (ClientException $e) {
|
||||||
$message = $e->getMessage();
|
$message = $e->getMessage();
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ return [
|
|||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||||
'app_version' => env('APP_VERSION', '5.8.44'),
|
'app_version' => env('APP_VERSION', '5.8.45'),
|
||||||
'app_tag' => env('APP_TAG', '5.8.44'),
|
'app_tag' => env('APP_TAG', '5.8.45'),
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', false),
|
'api_secret' => env('API_SECRET', false),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user