Merge pull request #6481 from janw/main

Make bulk rules clauses match bulk TransactionController params
This commit is contained in:
James Cole 2022-10-02 05:39:27 +02:00 committed by GitHub
commit 0338010eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,10 +27,10 @@ use FireflyIII\Enums\ClauseType;
return [
ClauseType::TRANSACTION => [
ClauseType::WHERE => [
'source_account_id' => 'required|numeric|belongsToUser:accounts,id',
'account_id' => 'required|numeric|belongsToUser:accounts,id',
],
ClauseType::UPDATE => [
'destination_account_id' => 'required|numeric|belongsToUser:accounts,id',
'account_id' => 'required|numeric|belongsToUser:accounts,id',
],
],
];