1
0
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:
Jon Ziebell 2019-07-06 14:50:05 -04:00
parent 2773fd7184
commit b21e9b9662

View File

@ -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);