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:
parent
089cbb69e3
commit
99bed767b3
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user