From b305bda740dd16ea2fa92df632a6b85285a907ee Mon Sep 17 00:00:00 2001 From: Jason Park Date: Mon, 18 Sep 2023 02:36:13 +0900 Subject: [PATCH] fix: is it because of the space --- src/lambda/patch-thread/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lambda/patch-thread/index.py b/src/lambda/patch-thread/index.py index d21cdb936..2138dec7b 100644 --- a/src/lambda/patch-thread/index.py +++ b/src/lambda/patch-thread/index.py @@ -32,7 +32,7 @@ def patch_thread(board_id, uid, thread_id, thread, action): "thread_id": thread_id, }, UpdateExpression='ADD likes :uid', - ConditionExpression='attribute_not_exists(likes) OR NOT contains (likes, :uid)', + ConditionExpression='attribute_not_exists(likes) OR NOT contains(likes, :uid)', ExpressionAttributeValues={ ':uid': {uid} }, @@ -69,7 +69,7 @@ def patch_thread(board_id, uid, thread_id, thread, action): "thread_id": thread_id, }, UpdateExpression='DELETE likes :uid', - ConditionExpression='attribute_exists(likes) AND contains (likes, :uid)', + ConditionExpression='attribute_exists(likes) AND contains(likes, :uid)', ExpressionAttributeValues={ ':uid': {uid} },