bts update

This commit is contained in:
2024-09-27 10:27:54 +10:00
parent 8f8d12065d
commit 659ae2e3ac
18 changed files with 1415 additions and 1862 deletions

View File

@@ -19,13 +19,13 @@ Artisan::command('cleanup', function() {
->update(['status' => 'published']);
// Open scheduled workshops
DB::table('events')
DB::table('workshops')
->where('status', 'scheduled')
->where('publish_at', '<', now())
->update(['status' => 'open']);
// Close workshops
DB::table('events')
DB::table('workshops')
->whereIn('status', ['open', 'full', 'private'])
->where('closes_at', '<', now())
->update(['status' => 'closed']);