Skip to content

Commit

Permalink
Optimize query a little
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang committed Apr 27, 2024
1 parent 1e65731 commit 9023b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default async function handler(
case 'GET':
try {
await dbConnect();
await VolunteerEvents.find({});
await VolunteerEvents.findOne({});

// query volunteerApplication by event id attributes
const applicationResponses = await ApplicationResponse.find({
Expand Down

0 comments on commit 9023b2d

Please sign in to comment.