mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
bindle api
This commit is contained in:
@@ -34,7 +34,10 @@ class PublishUnpublishedItems extends Command
|
|||||||
->when($modelName === 'BitcoinEvent', fn($q) => $q->where('from', '>', now()))
|
->when($modelName === 'BitcoinEvent', fn($q) => $q->where('from', '>', now()))
|
||||||
->when($modelName === 'CourseEvent', fn($q) => $q->where('from', '>', now()))
|
->when($modelName === 'CourseEvent', fn($q) => $q->where('from', '>', now()))
|
||||||
->when($modelName === 'MeetupEvent', fn($q) => $q->where('start', '>', now()))
|
->when($modelName === 'MeetupEvent', fn($q) => $q->where('start', '>', now()))
|
||||||
->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article'))
|
->when($modelName === 'LibraryItem', fn($q) => $q
|
||||||
|
->where('type', '<>', 'markdown_article')
|
||||||
|
->where('type', '<>', 'bindle')
|
||||||
|
)
|
||||||
->orderByDesc('created_at')
|
->orderByDesc('created_at')
|
||||||
->first();
|
->first();
|
||||||
if ($model) {
|
if ($model) {
|
||||||
|
|||||||
Reference in New Issue
Block a user