cleanup delete_user() language => lang

This commit is contained in:
xiaomlove
2021-06-15 10:10:28 +08:00
parent e24a146841
commit ab8069ad74
+1 -1
View File
@@ -197,7 +197,7 @@ function ban_user_with_leech_warning_expired()
function delete_user(\Illuminate\Database\Eloquent\Builder $query, $reasonKey)
{
$results = $query->where('enabled', \App\Models\User::ENABLED_YES)->get(['id', 'username', 'modcomment', 'language']);
$results = $query->where('enabled', \App\Models\User::ENABLED_YES)->get(['id', 'username', 'modcomment', 'lang']);
if ($results->isEmpty()) {
return [];
}