mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 04:27:46 +02:00
feat: add media entity and link documents, images and audio files to it
This commit is contained in:
parent
1d1490b06a
commit
6ecf2866cf
45 changed files with 1022 additions and 552 deletions
|
|
@ -42,7 +42,7 @@ class ActivityModel extends BaseUuidModel
|
|||
'post_id',
|
||||
'type',
|
||||
'payload',
|
||||
'task_status',
|
||||
'status',
|
||||
'scheduled_at',
|
||||
];
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ class ActivityModel extends BaseUuidModel
|
|||
'type' => $type,
|
||||
'payload' => $payload,
|
||||
'scheduled_at' => $scheduledAt,
|
||||
'task_status' => $taskStatus,
|
||||
'status' => $taskStatus,
|
||||
],
|
||||
true,
|
||||
);
|
||||
|
|
@ -112,7 +112,7 @@ class ActivityModel extends BaseUuidModel
|
|||
public function getScheduledActivities(): array
|
||||
{
|
||||
return $this->where('`scheduled_at` <= NOW()', null, false)
|
||||
->where('task_status', 'queued')
|
||||
->where('status', 'queued')
|
||||
->orderBy('scheduled_at', 'ASC')
|
||||
->findAll();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue