src/register.js
function verifyWebhook(hookDef, webhook) {
    logger(hookDef.name + ': Webhook already registered: ' + webhook.id + ': ' + webhook.status);
    if (webhook.status !== 'active') {
      logger(hookDef.name + ': Enabling webhook');
      webhooksClient.enable(webhook.id);
    }
  }
function verifyWebhook(hookDef, webhook) {
    logger(hookDef.name + ': Webhook already registered: ' + webhook.id + ': ' + webhook.status);
    if (webhook.status !== 'active') {
      logger(hookDef.name + ': Enabling webhook');
      webhooksClient.enable(webhook.id);
    }
  }
function verifyWebhook ( hookDef , webhook ) { logger ( hookDef . name + ': Webhook already registered: ' + webhook . id + ': ' + webhook . status ) ; if ( webhook . status !== 'active' ) { logger ( hookDef . name + ': Enabling webhook' ) ; webhooksClient . enable ( webhook . id ) ; } }
Verify that the webhook is active; activate it if its not.

@param {Object} hookDef -- A webhook definition object
@param {Object} webhook -- A webhook object from Layer
Verify that the webhook is active ; activate it if its not .