mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 13:59:29 +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 {
|
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
|
//Delete group image
|
||||||
if(!$this->deleteLogo($groupID))
|
if(!$this->deleteLogo($groupID))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user