1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed API log no longer logging due to previous commit

089cbb69e3c96e12da04f8db724e70116373ad6d
This commit is contained in:
Jon Ziebell 2021-02-26 18:47:55 -05:00
parent 089cbb69e3
commit 99bed767b3

View File

@ -10,18 +10,6 @@ namespace cora;
*/
final class api_log extends crud {
/**
* Insert an item into the api_log resource. Force the IP to the request IP
* and disallow overriding the timestamp.
*
* @param array $attributes The attributes to insert.
*
* @return int The ID of the inserted row.
*/
public function create($attributes) {
$this->request->queue_create($this->resource, $attributes);
}
/**
* Get the number of requests since a given timestamp for a given IP
* address. Handy for rate limiting.