mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: fix typo in receive-from-zoom webhook (#31189)
Closes https://github.com/fleetdm/confidential/issues/11546 Closes https://github.com/fleetdm/fleet/issues/31187 Changes: - Fixed typos in logged warnings in the receive-from-zoom webhook (inpsect » inspect)
This commit is contained in:
parent
e7bfe1e108
commit
5d950c903a
1 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ module.exports = {
|
|||
|
||||
if(event === 'endpoint.url_validation'){
|
||||
if(!payload.plainToken){
|
||||
sails.log.warn(`When the receive-from-zoom webhook recieved an event to validate the webhook URL, the provided payload did not contain a token. Full payload: ${require('util').inpsect(payload, {depth: null})}`);
|
||||
sails.log.warn(`When the receive-from-zoom webhook recieved an event to validate the webhook URL, the provided payload did not contain a token. Full payload: ${require('util').inspect(payload, {depth: null})}`);
|
||||
return this.res.badRequest();
|
||||
}
|
||||
// [?]: https://nodejs.org/docs/latest-v20.x/api/crypto.html#class-hmac
|
||||
|
|
@ -92,7 +92,7 @@ module.exports = {
|
|||
}
|
||||
})
|
||||
.intercept({raw: {statusCode: 404}}, (err)=>{
|
||||
sails.log.warn(`The receive-from-zoom webhook received an event (type: ${event}) about a Zoom call (id: ${idOfCallToGenerateTranscriptFor}), the Zoom API returned a 404 response when a request was sent to get information about the call. Full payload from Zoom: ${require('util').inpsect(payload, {depth: null})} Full error: ${require('util').inspect(err, {depth: 3})}`);
|
||||
sails.log.warn(`The receive-from-zoom webhook received an event (type: ${event}) about a Zoom call (id: ${idOfCallToGenerateTranscriptFor}), the Zoom API returned a 404 response when a request was sent to get information about the call. Full payload from Zoom: ${require('util').inspect(payload, {depth: null})} Full error: ${require('util').inspect(err, {depth: 3})}`);
|
||||
return 'callInfoNotFound';
|
||||
}).intercept((err)=>{
|
||||
return new Error(`When sending a request to get information about a Zoom recording, an error occured. Full error ${require('util').inspect(err, {depth: 3})}`);
|
||||
|
|
@ -107,7 +107,7 @@ module.exports = {
|
|||
}
|
||||
})
|
||||
.intercept({raw: {statusCode: 404}}, (err)=>{
|
||||
sails.log.warn(`The receive-from-zoom webhook received an event (type: ${event}) about a Zoom call (id: ${idOfCallToGenerateTranscriptFor}), the Zoom API returned a 404 response when a request was sent to get a transcript of the call. Full payload from Zoom: ${require('util').inpsect(payload, {depth: null})} Full error: ${require('util').inspect(err, {depth: 3})}`);
|
||||
sails.log.warn(`The receive-from-zoom webhook received an event (type: ${event}) about a Zoom call (id: ${idOfCallToGenerateTranscriptFor}), the Zoom API returned a 404 response when a request was sent to get a transcript of the call. Full payload from Zoom: ${require('util').inspect(payload, {depth: null})} Full error: ${require('util').inspect(err, {depth: 3})}`);
|
||||
return 'callTranscriptNotFound';
|
||||
}).intercept((err)=>{
|
||||
return new Error(`When sending a request to get a transcript of a Zoom recording, an error occured. Full error ${require('util').inspect(err, {depth: 3})}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue