1
0
mirror of https://github.com/beestat/app.git synced 2026-05-13 10:52:29 -04:00

Fixed #157 - Re-evaluate converged columns

Removed "json_" prefixes from all columns and converted columns to actual JSON types. Also removed all converged columns and converted contents to regular columns.
This commit is contained in:
Jon Ziebell
2019-10-28 21:18:43 -04:00
parent 43e547198b
commit eaee95736d
27 changed files with 207 additions and 258 deletions
+2 -6
View File
@@ -9,10 +9,6 @@ namespace cora;
*/
class api_cache extends crud {
public static $converged = [];
public static $user_locked = true;
/**
* Insert an item into the current resource with the provided attributes.
* Setting of the primary key column is not allowed and will be overwritten
@@ -45,7 +41,7 @@ class api_cache extends crud {
$attributes = [];
$attributes['key'] = $key;
$attributes['expires_at'] = date('Y-m-d H:i:s', time() + $duration);
$attributes['json_response_data'] = $response_data;
$attributes['response_data'] = $response_data;
$attributes['request_resource'] = $api_call['resource'];
$attributes['request_method'] = $api_call['method'];
@@ -63,7 +59,7 @@ class api_cache extends crud {
$attributes = [];
$attributes['expires_at'] = date('Y-m-d H:i:s', time() + $duration);
$attributes['json_response_data'] = $response_data;
$attributes['response_data'] = $response_data;
$attributes['api_cache_id'] = $cache_hit['api_cache_id'];
return $this->update($attributes);