Avoid calling Object.prototype methods directly on object instances
This commit is contained in:
@@ -16,8 +16,8 @@ const columnTypeQueryTpl = ctx => `SELECT pg_typeof(${ctx.column})::oid FROM (${
|
||||
|
||||
function getPGTypeName (pgType) {
|
||||
return {
|
||||
float: FLOAT_OIDS.hasOwnProperty(pgType),
|
||||
date: DATE_OIDS.hasOwnProperty(pgType)
|
||||
float: Object.prototype.hasOwnProperty.call(FLOAT_OIDS, pgType),
|
||||
date: Object.prototype.hasOwnProperty.call(DATE_OIDS, pgType)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user