Fix: Lint no-prototype-builtins (#5920)
* Fix: Lint no-prototype-builtins Closes: https://github.com/parse-community/parse-server/issues/5842 Reference: https://eslint.org/docs/rules/no-prototype-builtins * replace Object.hasOwnProperty.call
This commit is contained in:
committed by
Antonio Davi Macedo Coelho de Castro
parent
4bffdce047
commit
cf6e79ee75
@@ -71,7 +71,7 @@ function RestQuery(
|
||||
|
||||
// If we have keys, we probably want to force some includes (n-1 level)
|
||||
// See issue: https://github.com/parse-community/parse-server/issues/3185
|
||||
if (restOptions.hasOwnProperty('keys')) {
|
||||
if (Object.prototype.hasOwnProperty.call(restOptions, 'keys')) {
|
||||
const keysForInclude = restOptions.keys
|
||||
.split(',')
|
||||
.filter(key => {
|
||||
|
||||
Reference in New Issue
Block a user