Skip to content

Commit

Permalink
fix: fixing expression attribute name and update expressions for lamb…
Browse files Browse the repository at this point in the history
…da patch profile
  • Loading branch information
JasonNotJson committed Nov 16, 2023
1 parent 86978ac commit 3b8954a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambda/patch-profile/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 3b8954a

Please sign in to comment.