Skip to content

Commit

Permalink
lambdas: Tablename
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNuttall committed Dec 1, 2024
1 parent e5130e0 commit 273337c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/lambdas/onGameStateChange/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import {
import { DynamoDBClient, QueryCommand } from '@aws-sdk/client-dynamodb'
import { unmarshall } from '@aws-sdk/util-dynamodb'

const { API_ENDPOINT } = process.env
const { CONNECTIONS_TABLE_NAME, API_ENDPOINT } = process.env
const apiClient = new ApiGatewayManagementApiClient({ endpoint: API_ENDPOINT })
const ddbClient = new DynamoDBClient()

const getPlayersState = async (gameId) => {
const command = new QueryCommand({
TableName: 'connections-table',
TableName: CONNECTIONS_TABLE_NAME,
KeyConditionExpression: '#gameId = :gameId',
ExpressionAttributeNames: { '#gameId': 'gameId' },
ExpressionAttributeValues: { ':gameId': { S: gameId } },
Expand Down

0 comments on commit 273337c

Please sign in to comment.