mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 20:34:01 +00:00
- follow the standard coding
This commit is contained in:
@@ -37,14 +37,13 @@ class EntitySignatureModule extends BaseController
|
||||
$page = $request->get('page', null);
|
||||
$limit = $request->get('limit', 10);
|
||||
|
||||
$status_default[] = config('constants.entity.status.active');
|
||||
|
||||
|
||||
$query = EntitySignature::query();
|
||||
|
||||
if (!empty($status) > 0) {
|
||||
$query->whereIn('status', $status);
|
||||
}else{
|
||||
$query->whereIn('status', $status_default);
|
||||
$query->whereIn('status', [config('constants.entity.status.active')]);
|
||||
}
|
||||
|
||||
$user_id = Auth::guard('user-api')->user()->id;
|
||||
|
||||
Reference in New Issue
Block a user