mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 13:08:58 +00:00
Fix issue : Delete likes of a group when deleting it
This commit is contained in:
parent
8a91a42e83
commit
fe702519b1
@ -708,6 +708,10 @@ class GroupsComponent {
|
||||
*/
|
||||
public function delete_group(int $groupID) : bool {
|
||||
|
||||
// Delete all the likes of the group
|
||||
if(!components()->likes->delete_all($groupID, Likes::LIKE_GROUP))
|
||||
return FALSE;
|
||||
|
||||
//Delete group image
|
||||
if(!$this->deleteLogo($groupID))
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user