Skip to content

Commit

Permalink
fix: dynamo type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MXPOL committed Oct 31, 2023
1 parent 54c714c commit 83d0af1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/external-db-dynamodb/src/dynamo_schema_requests_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { SystemTable } from './dynamo_utils'
import { UpdateCommandInput } from '@aws-sdk/lib-dynamodb/dist-types/commands/UpdateCommand'
import { CreateTableCommandInput } from '@aws-sdk/client-dynamodb/dist-types/commands/CreateTableCommand'

export const updateColumnsExpression = (collectionName: any, columns: any) => ({


export const updateColumnsExpression = (collectionName: any, columns: any): UpdateCommandInput => ({
TableName: SystemTable,
Key: {
tableName: collectionName
Expand Down Expand Up @@ -50,7 +52,7 @@ export const changeColumnTypeExpression = (collectionName: string, column: Input
},
})

export const createTableExpression = (collectionName: any) => ({
export const createTableExpression = (collectionName: string): CreateTableCommandInput => ({
TableName: collectionName,
KeySchema: [{ AttributeName: '_id', KeyType: 'HASH' }],
AttributeDefinitions: [{ AttributeName: '_id', AttributeType: 'S' }],
Expand Down

0 comments on commit 83d0af1

Please sign in to comment.