Make bulk rules clauses match bulk TransactionController params

This commit is contained in:
Jan Willhaus 2022-10-01 22:39:25 +02:00
parent c49f3fcccf
commit ff91fe432c

View File

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