0
0
Fork 0

Use modern ES syntax rather than .call (#29368)

This commit is contained in:
Renaud Chaput 2024-02-27 16:42:05 +01:00 committed by GitHub
parent 6f7615ba86
commit 899eac1a92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 28 deletions

View file

@ -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;
}