fix: fix a typo about updatePolicy method

fix: fix a typo
This commit is contained in:
basakest 2021-04-04 15:07:42 +08:00
parent cd5eefc646
commit 4e25a6a457
1 changed files with 1 additions and 2 deletions

View File

@ -235,8 +235,7 @@ class DatabaseAdapter implements DatabaseAdapterContract, BatchDatabaseAdapterCo
$instance->first();
$update = [];
foreach($newPolicy as $k => $v) {
$item = 'v' . $k;
$update[$item] = $k;
$update['v' . $k] = $v;
}
$instance->update($update);
}