Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sundersc committed May 9, 2024
1 parent d7334fc commit f5c3260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1147,9 +1147,9 @@ const getIndexesContainingAttributes = (
): string[] => {
if (!currentSchema) return [];
const result = currentSchema
.filter((index) => index.IndexStatus === 'ACTIVE') // This is important. You do not want to update a GSI that is not active.
.filter((index) => index.KeySchema?.some((key) => attributes.includes(key.AttributeName!)))
.map((index) => index.IndexName!);
.filter((index) => index.IndexStatus === 'ACTIVE') // This is important. You do not want to update a GSI that is not active.
.filter((index) => index.KeySchema?.some((key) => attributes.includes(key.AttributeName!)))
.map((index) => index.IndexName!);
return result ?? [];
};

Expand Down
9 changes: 0 additions & 9 deletions packages/amplify-graphql-transformer-core/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,6 @@ export const getConnectionName: (modelName: string) => string;
// @public (undocumented)
export const getDefaultStrategyNameForDbType: (dbType: ModelDataSourceStrategySqlDbType) => string;

// @public (undocumented)
export const getField: (obj: ObjectTypeDefinitionNode, fieldName: string) => FieldDefinitionNode | undefined;

// Warning: (ae-forgotten-export) The symbol "Operation" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
Expand Down Expand Up @@ -258,9 +255,6 @@ export const getNonScalarFields: (object: ObjectTypeDefinitionNode | undefined,
// @public (undocumented)
export const getParameterStoreSecretPath: (secret: string, secretsKey: string, apiName: string, environmentName: string, appId: string) => string;

// @public (undocumented)
export const getPrimaryKeyFieldNodes: (type: ObjectTypeDefinitionNode) => FieldDefinitionNode[];

// @public (undocumented)
export const getPrimaryKeyFields: (type: ObjectTypeDefinitionNode) => string[];

Expand Down Expand Up @@ -291,9 +285,6 @@ function getSyncConfig(ctx: TransformerTransformSchemaStepContextProvider, typeN
// @public (undocumented)
export const getTable: (ctx: TransformerContextProvider, object: ObjectTypeDefinitionNode) => any;

// @public (undocumented)
export const getType: (schema: DocumentNode_2, typeName: string) => ObjectTypeDefinitionNode | undefined;

// @public (undocumented)
export class GraphQLTransform {
constructor(options: GraphQLTransformOptions);
Expand Down

0 comments on commit f5c3260

Please sign in to comment.