Skip to content

Commit

Permalink
fix: workaround bug (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr authored Feb 8, 2024
1 parent 88883c5 commit 3bfafae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamodb.w
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub class DynamoDBTableAws {
pub inflight getItem(key: Map<Attribute>): Map<Attribute> {
let json = this._itemToJson(key);
let result = DynamoDBTableAws._getItem(this.tableName, json);
return this._rawMapToItem(result?.get("Item") ?? {});
return this._rawMapToItem((result ?? {}).get("Item"));
}

pub inflight scan(): Array<Map<Attribute>> {
Expand Down

0 comments on commit 3bfafae

Please sign in to comment.