WIP start of scheduled tasks.

This commit is contained in:
Stuart Rowlands committed 2024-01-01 10:33:16 -08:00
1 parent d5b3e88fc4
commit adecf328fc
10 files changed
+440

No files matched your search

+5
View File
@@ -315,6 +315,11 @@ class Application extends BaseModel
return $this->hasMany(EnvironmentVariable::class)->where('is_preview', true)->where('key', 'like', 'NIXPACKS_%');
}
public function scheduled_tasks(): HasMany
{
return $this->hasMany(ScheduledTask::class)->orderBy('name', 'asc');
}
public function private_key()
{
return $this->belongsTo(PrivateKey::class);