diff --git a/app/src/Domain/Repository/Channel/ChannelRepository.php b/app/src/Domain/Repository/Channel/ChannelRepository.php index fa6b199..d381932 100644 --- a/app/src/Domain/Repository/Channel/ChannelRepository.php +++ b/app/src/Domain/Repository/Channel/ChannelRepository.php @@ -90,10 +90,13 @@ class ChannelRepository implements ChannelRepositoryInterface return $this->createChannelFromResults($results->resultRows[0]); } + /** + * @throws Throwable + */ public function create(Channel $channel, User $owner): int { - $query = "INSERT INTO channels - (name, slug, description, link, language, copyright, explicit, owner_id) + $query = "INSERT INTO channels (name, slug, description, link, + language, copyright, explicit, owner_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"; $results = await($this->db->query($query, [ @@ -109,4 +112,14 @@ class ChannelRepository implements ChannelRepositoryInterface return $results->insertId; } + + public function update(Channel $channel): bool + { + $query = "UPDATE channels SET "; + } + + public function delete(Channel $channel): bool + { + + } }