mirror of
https://github.com/node-red/node-red
synced 2024-11-23 17:23:56 +00:00
Storage object null when adding twitter credentials as first ever node
This commit is contained in:
parent
1967046cc8
commit
3054b04378
@ -207,6 +207,10 @@ var credentials = {};
|
||||
|
||||
module.exports.addCredentials = function(id,creds) {
|
||||
credentials[id] = creds;
|
||||
if (!storage) {
|
||||
// Do this lazily to ensure the storage provider as been initialised
|
||||
storage = require("./storage");
|
||||
}
|
||||
storage.saveCredentials(credentials);
|
||||
}
|
||||
module.exports.getCredentials = function(id) {
|
||||
|
Loading…
Reference in New Issue
Block a user