From 2cbe3a102c6653fff11304e75f5b02eb30bc25fc Mon Sep 17 00:00:00 2001 From: Arman Kumar Jena Date: Thu, 5 Sep 2024 16:55:21 +0530 Subject: [PATCH 1/2] updated seed data --- prisma/seed/forms/checkinformPO.ts | 4 ++-- prisma/seed/forms/checkinformSM.ts | 8 ++++---- prisma/seed/voyage-teams.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/prisma/seed/forms/checkinformPO.ts b/prisma/seed/forms/checkinformPO.ts index e59afcfb..be834b89 100644 --- a/prisma/seed/forms/checkinformPO.ts +++ b/prisma/seed/forms/checkinformPO.ts @@ -16,7 +16,7 @@ export const populateCheckinFormPO = async () => { questions: { create: [ { - order: 1, + order: 101, inputType: { connect: { name: "checkbox", @@ -73,7 +73,7 @@ export const populateCheckinFormPO = async () => { }, }, { - order: 2, + order: 102, inputType: { connect: { name: "text", diff --git a/prisma/seed/forms/checkinformSM.ts b/prisma/seed/forms/checkinformSM.ts index 6b48abad..72d7af33 100644 --- a/prisma/seed/forms/checkinformSM.ts +++ b/prisma/seed/forms/checkinformSM.ts @@ -16,7 +16,7 @@ export const populateCheckinFormSM = async () => { questions: { create: [ { - order: 1, + order: 201, inputType: { connect: { name: "boolean", @@ -26,7 +26,7 @@ export const populateCheckinFormSM = async () => { answerRequired: true, }, { - order: 2, + order: 202, inputType: { connect: { name: "boolean", @@ -36,7 +36,7 @@ export const populateCheckinFormSM = async () => { answerRequired: true, }, { - order: 3, + order: 203, inputType: { connect: { name: "boolean", @@ -46,7 +46,7 @@ export const populateCheckinFormSM = async () => { answerRequired: true, }, { - order: 4, + order: 204, inputType: { connect: { name: "text", diff --git a/prisma/seed/voyage-teams.ts b/prisma/seed/voyage-teams.ts index c9f971a7..1e8ffe1d 100644 --- a/prisma/seed/voyage-teams.ts +++ b/prisma/seed/voyage-teams.ts @@ -487,7 +487,7 @@ export const populateVoyageTeams = async () => { }, voyageRole: { connect: { - name: voyageRoles[2].name, + name: voyageRoles[1].name, }, }, status: { From 95422279ff131b5d98529bb9d816618c901252ba Mon Sep 17 00:00:00 2001 From: Arman Kumar Jena Date: Thu, 5 Sep 2024 18:43:33 +0530 Subject: [PATCH 2/2] updated changelog.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b63442d1..71d80f2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ Another example [here](https://co-pilot.dev/changelog) ### Fixed - Fix seed data for alpha test (check in form question changes, gravatar) ([#190](https://github.com/chingu-x/chingu-dashboard-be/pull/190)) +- Fix seed checkin form data for PO and SM , and voyage-role for team 6 ([#196](https://github.com/chingu-x/chingu-dashboard-be/pull/196)) ### Removed