@turbasen/auth
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -48,3 +48,3 @@ 'use strict'; | ||
if (this.penalty > 0) { | ||
redis.hincrby(this.cacheKey, 'remaining', this.penalty); | ||
redis.hincrby(this.cacheKey, 'remaining', -this.penalty); | ||
} | ||
@@ -51,0 +51,0 @@ } |
@@ -23,3 +23,3 @@ 'use strict'; | ||
isOwner(doc) { | ||
return !!doc.tilbyder && this.provider === doc.tilbyder; | ||
return !!doc.tilbyder && !!this.provider && this.provider === doc.tilbyder; | ||
} | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "@turbasen/auth", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Authentication middleware used internally at Nasjonal Turbase API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12783