Automatically clean calls.

This commit is contained in:
2019-01-26 08:40:29 +01:00
parent f99e16c23e
commit bdea890aaa
4 changed files with 73 additions and 2 deletions

18
bin/clean_calls Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env php
############################
# ComunicAPI calls cleaner #
# #
# @author Pierre HUBERT #
############################
Automatically remove old calls
<?php
require __DIR__."/../init.php";
if(!components()->calls->cleanCalls())
echo "Could not clean calls!";
echo "Calls successfully cleaned.";