From b0abdf9df048d8648c5f01a32b05417d4d668df4 Mon Sep 17 00:00:00 2001 From: Jason Park <93040528+JasonNotJson@users.noreply.github.com> Date: Sun, 19 Mar 2023 00:49:11 +0900 Subject: [PATCH] fix: fixing error for get thread (#271) --- src/lambda/get-single-thread/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lambda/get-single-thread/index.py b/src/lambda/get-single-thread/index.py index a6489c17e..7c86527b5 100644 --- a/src/lambda/get-single-thread/index.py +++ b/src/lambda/get-single-thread/index.py @@ -8,7 +8,7 @@ def get_single_thread(board_id, ts, thread_id, uid): results = table.query(KeyConditionExpression=Key( "board_id").eq(board_id), - ConditionExpression=Attr('thread_id').eq(thread_id))["Items"] + FilterExpression=Attr('thread_id').eq(thread_id))["Items"] if not results: raise LookupError