6
lib.php
6
lib.php
@ -104,6 +104,8 @@ class local_webhooks_api {
|
|||||||
self::insert_events( $service[ "events" ], $serviceId );
|
self::insert_events( $service[ "events" ], $serviceId );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Mark the log
|
||||||
|
|
||||||
return (int) $serviceId;
|
return (int) $serviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,6 +122,8 @@ class local_webhooks_api {
|
|||||||
print_error( "unknowparamtype", "error", null, "serviceId" );
|
print_error( "unknowparamtype", "error", null, "serviceId" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Mark the log
|
||||||
|
|
||||||
$DB->delete_records( LW_TABLE_EVENTS, array( "serviceid" => $serviceId ) );
|
$DB->delete_records( LW_TABLE_EVENTS, array( "serviceid" => $serviceId ) );
|
||||||
return $DB->delete_records( LW_TABLE_SERVICES, array( "id" => $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" ] );
|
self::insert_events( $service[ "events" ], $service[ "id" ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Mark the log
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user