From 5884a58f544300f6674dc5bdcadfc16e8109749e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 8 Sep 2018 18:13:45 +0400 Subject: Added TODO Signed-off-by: Valentin Popov --- lib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib.php b/lib.php index e30595f..ae2c635 100644 --- a/lib.php +++ b/lib.php @@ -104,6 +104,8 @@ class local_webhooks_api { self::insert_events( $service[ "events" ], $serviceId ); } + // TODO: Mark the log + return (int) $serviceId; } @@ -120,6 +122,8 @@ class local_webhooks_api { print_error( "unknowparamtype", "error", null, "serviceId" ); } + // TODO: Mark the log + $DB->delete_records( LW_TABLE_EVENTS, array( "serviceid" => $serviceId ) ); return $DB->delete_records( LW_TABLE_SERVICES, array( "id" => $serviceId ) ); } @@ -143,6 +147,8 @@ class local_webhooks_api { self::insert_events( $service[ "events" ], $service[ "id" ] ); } + // TODO: Mark the log + return $result; } -- cgit v1.2.3