Skip to content

Commit

Permalink
fix: make scenarios get all endpoint return with a consistent order
Browse files Browse the repository at this point in the history
  • Loading branch information
harbassan authored Sep 30, 2024
1 parent fe97a57 commit 24cf4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/db/daos/scenarioDao.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const retrieveScenarioList = async (uid) => {
const scenarios = await Scenario.find(
{ uid },
{ name: 1, scenes: { $slice: 1 } }
).lean();
).sort({ _id: 1 }).lean();
return addThumbs(scenarios);
};

Expand Down

0 comments on commit 24cf4d6

Please sign in to comment.