Skip to content

Commit 5b7e531

Browse files
committed
feat(api): reset onboarding status during org reset
- update onboarding status to incomplete when resetting organization
1 parent 9a118d1 commit 5b7e531

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • apps/app/src/app/api/retool/reset-org

apps/app/src/app/api/retool/reset-org/route.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ export async function POST(request: NextRequest) {
7979
db.frameworkInstance.deleteMany({
8080
where: { organizationId },
8181
}),
82+
db.onboarding.update({
83+
where: { organizationId },
84+
data: {
85+
completed: false,
86+
},
87+
}),
8288
]);
8389

8490
return NextResponse.json({

0 commit comments

Comments
 (0)