Hello all,
I am updating a client’s application from 2.2 to 2.3, but I am having an issue using the $db.get method. The current function is a simple get call:
exports.getDataStorage = function(key) {
let response = $db.get(key);
return response;
}
But I am receiving the following error:
TypeError: $db.getAll is not a function at exports.getDataStorage
I have logged the response from the function call and it prints the following:
{ state: [Function: state], always: [Function: always], then: [Function: then], promise: [Function: promise], pipe: [Function: then], done: [Function: add], fail: [Function: add], progress: [Function: add] }
I am not sure where to start troubleshooting this issue because the error is saying $db.getAll
, but the actual function call is $db.get
. I have confirmed that my keys are not null values. Is there any documentation on how to update these calls to 2.3? Or is there something wrong with my current syntax?
Thank you for taking the time to review my post, and please let me know if there is any additional information I can provide.