Skip to content

Commit e77e636

Browse files
committed
don't return whole payload for admins
1 parent 606e872 commit e77e636

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/routes/roomRequests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ const roomRequestRoutes: FastifyPluginAsync = async (fastify, _options) => {
198198
command = new QueryCommand({
199199
TableName: genericConfig.RoomRequestsTableName,
200200
KeyConditionExpression: "semesterId = :semesterValue",
201+
ProjectionExpression: "requestId, host, title, semester",
201202
ExpressionAttributeValues: {
202203
":semesterValue": { S: semesterId },
203204
},

0 commit comments

Comments
 (0)