Add 'awaiting review' and 'reviewed' project statuses that update from GitHub; allow project owners to update their project statuses

This commit is contained in:
Alex Cabal 2025-01-27 15:38:47 -06:00
parent b48f3a5798
commit 6378d687d8
12 changed files with 204 additions and 21 deletions

View file

@ -185,8 +185,8 @@ final class Ebook{
inner join Ebooks
on Projects.EbookId = Ebooks.EbookId
where Ebooks.EbookId = ?
and Status in (?, ?)
', [$this->EbookId, Enums\ProjectStatusType::InProgress, Enums\ProjectStatusType::Stalled], Project::class)[0] ?? null;
and Status in (?, ?, ?, ?)
', [$this->EbookId, Enums\ProjectStatusType::InProgress, Enums\ProjectStatusType::Stalled, Enums\ProjectStatusType::AwaitingReview, Enums\ProjectStatusType::Reviewed], Project::class)[0] ?? null;
}
}