Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 8598afc

Browse files
committed
Added resourceName to ProjectionExpression in getRestaurantDetails function
1 parent 2f489ba commit 8598afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lambdas/restaurant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const getRestaurantDetails = async (restaurantId: string) => {
192192
const getRestaurantDetails = new GetItemCommand({
193193
TableName: 'restaurants',
194194
Key: marshall({ restaurantId }),
195-
ProjectionExpression: 'restaurantName',
195+
ProjectionExpression: 'restaurantName, resourceName',
196196
});
197197
return unmarshall((await dynamoClient.send(getRestaurantDetails)).Item ?? {});
198198
};

0 commit comments

Comments
 (0)