Skip to content

Commit 8338585

Browse files
Fix
1 parent 037f6f1 commit 8338585

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/abstractplay.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3275,7 +3275,7 @@ async function submitMove(userid: string, pars: { id: string, move: string, draw
32753275
list.push(ddbDocClient.send(new UpdateCommand({
32763276
TableName: process.env.ABSTRACT_PLAY_TABLE,
32773277
Key: { "pk": "METAGAMES", "sk": "COUNTS" },
3278-
ExpressionAttributeNames: { "#gr": game.metaGame + "_ratings", "#g": game.metaGame },
3278+
ExpressionAttributeNames: { "#gr": game.metaGame + "_ratings" },
32793279
ExpressionAttributeValues: {":p": new Set([player.id]), ":user_id": player.id},
32803280
UpdateExpression: "add #gr :p",
32813281
})));
@@ -8117,6 +8117,7 @@ async function *queryItemsGenerator(queryInput: QueryCommandInput): AsyncGenerat
81178117
} while (lastEvaluatedKey !== undefined)
81188118
}
81198119

8120+
// Make sure to increase the lamda timeout (from 6s) when you want to process all users. Just getting all users already takes about 2s.
81208121
const getAllUsers = async (): Promise<FullUser[]> => {
81218122
const result: FullUser[] = []
81228123
const queryInput: QueryCommandInput = {

0 commit comments

Comments
 (0)