fixed file controller not setting user field to 0
This commit is contained in:
parent
a7a81ca64d
commit
3e4c3c878a
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ class FileController extends Controller
|
|||
if ($fileId) {
|
||||
(new File($fileId))->delete();
|
||||
}
|
||||
|
||||
DB::table('users')
|
||||
->where('user_id', $user->id)
|
||||
->update(["user_{$mode}" => 0]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue