Skip to content

Commit

Permalink
fix: NUMBER_VALUE cannot be converted to String on specialKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
yutak23 committed Nov 14, 2024
1 parent fe81394 commit 25185cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connect-dynamodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ module.exports = function (connect) {
this.specialKeys.forEach((key) => {
if (typeof sess[key.name] !== "undefined") {
const item = {};
item[key.type] = sess[key.name];
item[key.type] = key.type === 'N' ? JSON.stringify(sess[key.name]) : sess[key.name];
params.Item[key.name] = item;
} else {
missingKeys.push(key.name);
Expand Down

0 comments on commit 25185cb

Please sign in to comment.