mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Fixing ecobee_token->delete() not actually deleting because it fails to autoload database class
This commit is contained in:
parent
2773fd7184
commit
b21e9b9662
@ -129,7 +129,7 @@ class ecobee_token extends cora\crud {
|
||||
* @return int
|
||||
*/
|
||||
public function delete($id) {
|
||||
$database = database::get_second_instance();
|
||||
$database = cora\database::get_second_instance();
|
||||
|
||||
// Need to delete the token before logging out or else the delete fails.
|
||||
$return = $database->delete('ecobee_token', $id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user