mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Use more async funcs in runtime/lib/api to reduce Promise creation
This commit is contained in:
@@ -71,7 +71,7 @@ var api = module.exports = {
|
||||
* @return {Promise} - the node information
|
||||
* @memberof @node-red/runtime_context
|
||||
*/
|
||||
getValue: function(opts) {
|
||||
getValue: async function(opts) {
|
||||
return new Promise(function(resolve,reject) {
|
||||
var scope = opts.scope;
|
||||
var id = opts.id;
|
||||
@@ -165,7 +165,7 @@ var api = module.exports = {
|
||||
* @return {Promise} - the node information
|
||||
* @memberof @node-red/runtime_context
|
||||
*/
|
||||
delete: function(opts) {
|
||||
delete: async function(opts) {
|
||||
return new Promise(function(resolve,reject) {
|
||||
var scope = opts.scope;
|
||||
var id = opts.id;
|
||||
|
Reference in New Issue
Block a user