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(); $instance->first();
$update = []; $update = [];
foreach($newPolicy as $k => $v) { foreach($newPolicy as $k => $v) {
$item = 'v' . $k; $update['v' . $k] = $v;
$update[$item] = $k;
} }
$instance->update($update); $instance->update($update);
} }