Fix googleApisSetRequestExtraParams (#6455)
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
import { Repository } from 'typeorm';
|
||||
|
||||
import {
|
||||
FeatureFlagEntity,
|
||||
FeatureFlagKeys,
|
||||
} from 'src/engine/core-modules/feature-flag/feature-flag.entity';
|
||||
import { FeatureFlagKey } from 'src/engine/core-modules/feature-flag/enums/feature-flag-key.enum';
|
||||
import { FeatureFlagEntity } from 'src/engine/core-modules/feature-flag/feature-flag.entity';
|
||||
import { RemoteServerType } from 'src/engine/metadata-modules/remote-server/remote-server.entity';
|
||||
import {
|
||||
RemoteServerException,
|
||||
@ -36,9 +34,9 @@ export const validateRemoteServerType = async (
|
||||
const getFeatureFlagKey = (remoteServerType: RemoteServerType) => {
|
||||
switch (remoteServerType) {
|
||||
case RemoteServerType.POSTGRES_FDW:
|
||||
return FeatureFlagKeys.IsPostgreSQLIntegrationEnabled;
|
||||
return FeatureFlagKey.IsPostgreSQLIntegrationEnabled;
|
||||
case RemoteServerType.STRIPE_FDW:
|
||||
return FeatureFlagKeys.IsStripeIntegrationEnabled;
|
||||
return FeatureFlagKey.IsStripeIntegrationEnabled;
|
||||
default:
|
||||
throw new RemoteServerException(
|
||||
`Type ${remoteServerType} is not supported.`,
|
||||
|
||||
Reference in New Issue
Block a user