Improve creator studio browsing and versioning
This commit is contained in:
@@ -83,8 +83,11 @@ final class StoryStudioProvider implements CreatorStudioProvider
|
||||
$query = Story::query()
|
||||
->where('creator_id', $user->id)
|
||||
->with(['tags'])
|
||||
->orderByDesc('updated_at')
|
||||
->limit($limit);
|
||||
->orderByDesc('updated_at');
|
||||
|
||||
if ($limit > 0) {
|
||||
$query->limit($limit);
|
||||
}
|
||||
|
||||
if ($bucket === 'drafts') {
|
||||
$query->whereIn('status', ['draft', 'pending_review', 'rejected']);
|
||||
|
||||
Reference in New Issue
Block a user