Record redirect events (#16181)
* Record redirect events * Update index.js * Update record-redirect.js * Only run when it can send to Hydro * Update record-redirect.js
This commit is contained in:
@@ -21,6 +21,13 @@ module.exports = class Hydro {
|
||||
this.schemas = SCHEMAS
|
||||
}
|
||||
|
||||
/**
|
||||
* Can check if it can actually send to Hydro
|
||||
*/
|
||||
maySend () {
|
||||
return Boolean(this.secret && this.endpoint)
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a SHA256 hash of the payload using the secret
|
||||
* to authenticate with Hydro
|
||||
|
||||
Reference in New Issue
Block a user