mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 10:53:31 +00:00
Add option for webhooks.
This commit is contained in:
@@ -103,7 +103,9 @@ class StoreController extends Controller
|
|||||||
throw new ValidationException($validator,0, $e);
|
throw new ValidationException($validator,0, $e);
|
||||||
}
|
}
|
||||||
app('preferences')->mark();
|
app('preferences')->mark();
|
||||||
event(new StoredTransactionGroup($transactionGroup, $data['apply_rules'] ?? true));
|
$applyRules = $data['apply_rules'] ?? true;
|
||||||
|
$fireWebhooks = $data['fire_webhooks'] ?? true;
|
||||||
|
event(new StoredTransactionGroup($transactionGroup, $applyRules, $fireWebhooks));
|
||||||
|
|
||||||
$manager = $this->getManager();
|
$manager = $this->getManager();
|
||||||
/** @var User $admin */
|
/** @var User $admin */
|
||||||
|
@@ -80,7 +80,9 @@ class UpdateController extends Controller
|
|||||||
$manager = $this->getManager();
|
$manager = $this->getManager();
|
||||||
|
|
||||||
app('preferences')->mark();
|
app('preferences')->mark();
|
||||||
event(new UpdatedTransactionGroup($transactionGroup, $data['apply_rules'] ?? true));
|
$applyRules = $data['apply_rules'] ?? true;
|
||||||
|
$fireWebhooks = $data['fire_webhooks'] ?? true;
|
||||||
|
event(new UpdatedTransactionGroup($transactionGroup, $applyRules, $fireWebhooks));
|
||||||
|
|
||||||
/** @var User $admin */
|
/** @var User $admin */
|
||||||
$admin = auth()->user();
|
$admin = auth()->user();
|
||||||
|
Reference in New Issue
Block a user