diff --git a/dynamodb.w b/dynamodb.w index 783b9d4..476ae9a 100644 --- a/dynamodb.w +++ b/dynamodb.w @@ -104,7 +104,7 @@ pub class DynamoDBTableAws { pub inflight getItem(key: Map): Map { 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> {