Use modern ES syntax rather than .call (#29368)
				
					
				
			This commit is contained in:
		@@ -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;
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user