From 3b8954a22ec681cd4ebd54a8c051ca014ed159c1 Mon Sep 17 00:00:00 2001 From: Jason Park Date: Fri, 17 Nov 2023 02:48:57 +0900 Subject: [PATCH] fix: fixing expression attribute name and update expressions for lambda patch profile --- src/lambda/patch-profile/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lambda/patch-profile/index.py b/src/lambda/patch-profile/index.py index f2708cc66..6eeea4335 100644 --- a/src/lambda/patch-profile/index.py +++ b/src/lambda/patch-profile/index.py @@ -14,7 +14,7 @@ def patch_profile(uid, profile): "uid": uid, }, ConditionExpression=Attr('uid').eq(uid), - UpdateExpression='SET #nm = :name, email = :email, year = :#yr, class_of = :class_of, languages = :languages, interests = :interests, school = :school, updated_at = :ts', + UpdateExpression='SET #nm = :name, email = :email, #yr = :year, class_of = :class_of, languages = :languages, interests = :interests, school = :school, updated_at = :ts', ExpressionAttributeValues={ ":name": profile["name"], ":email": profile["email"],