diff options
author | Valentin Popov <info@valentineus.link> | 2018-09-08 17:13:45 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-09-08 17:13:45 +0300 |
commit | 5884a58f544300f6674dc5bdcadfc16e8109749e (patch) | |
tree | a334afe241c5404502fc818a69492493c429a8a2 /lib.php | |
parent | 472f85850ac4694b7127b389d31e5ee97aa5f037 (diff) | |
download | local_webhooks-5884a58f544300f6674dc5bdcadfc16e8109749e.tar.xz local_webhooks-5884a58f544300f6674dc5bdcadfc16e8109749e.zip |
Added TODO
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |