Skip to content
This repository was archived by the owner on Nov 3, 2020. It is now read-only.

Commit 058e310

Browse files
committed
fixed parser errors
1 parent d95d58d commit 058e310

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ module.exports = class SetupBasicAuthentication {
7272
// check if any of the http events is marked as private, and if that event
7373
// also doesn't have a custom authorizer already, apply our authenticator
7474
Object.keys(fnctn.events).forEach((fnctnEvent) => {
75-
7675
// if http doesn't exist, skip
77-
if(!('http' in serverless.service.functions[function_name].events[fnctn_event])) {
76+
if (!('http' in this.serverless.service.functions[functionName].events[fnctnEvent])) {
7877
return;
7978
}
8079

0 commit comments

Comments
 (0)