Use modern ES syntax rather than .call
(#29368)
This commit is contained in:
parent
6f7615ba86
commit
899eac1a92
7 changed files with 34 additions and 28 deletions
|
@ -192,7 +192,7 @@ const pgConfigFromEnv = (env) => {
|
|||
if (!baseConfig.password && env.DB_PASS) {
|
||||
baseConfig.password = env.DB_PASS;
|
||||
}
|
||||
} else if (Object.hasOwnProperty.call(pgConfigs, environment)) {
|
||||
} else if (Object.hasOwn(pgConfigs, environment)) {
|
||||
baseConfig = pgConfigs[environment];
|
||||
|
||||
if (env.DB_SSLMODE) {
|
||||
|
@ -912,7 +912,7 @@ const startServer = async () => {
|
|||
// If the payload already contains the `filtered` property, it means
|
||||
// that filtering has been applied on the ruby on rails side, as
|
||||
// such, we don't need to construct or apply the filters in streaming:
|
||||
if (Object.prototype.hasOwnProperty.call(payload, "filtered")) {
|
||||
if (Object.hasOwn(payload, "filtered")) {
|
||||
transmit(event, payload);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue