From 6d377296fc33b8d14d6afa0520d81671fd25d109 Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Mon, 12 Jan 2026 18:46:06 +0530 Subject: [PATCH] fixed the order by id asc in the allowed entry types --- prisma/seed.ts | 2 +- src/modules/prepopulate/services/prepopulate.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index 307a7ab..aa81aec 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -676,7 +676,7 @@ async function main() { { name: "We provide basic advice to travelers about wildlife safety.", points: 5 }, { name: "We conduct guided tours with trained personnel and provide detailed safety briefings.", points: 8 }, { name: "We implement comprehensive wildlife safety measures, including trained guides, safety equipment, and collaboration with wildlife experts.", points: 10 }, - { name: "Not applicable.", points: 10 } + { name: "Not applicable.", points: 0 } ] }, { diff --git a/src/modules/prepopulate/services/prepopulate.service.ts b/src/modules/prepopulate/services/prepopulate.service.ts index 563fb85..f97de05 100644 --- a/src/modules/prepopulate/services/prepopulate.service.ts +++ b/src/modules/prepopulate/services/prepopulate.service.ts @@ -179,7 +179,7 @@ export class PrePopulateService { }), this.prisma.allowedEntryTypes.findMany({ where: { isActive: true }, - orderBy: { allowedEntryTypeName: 'asc' } + orderBy: { id: 'asc' } }), this.prisma.ageRestrictions.findMany({ where: { isActive: true },