feat(setup): add ability to skip setup wizard and update user model
Deploy / Build (pull_request) Successful in 33s
Deploy / Build and Push Docker Image (pull_request) Has been skipped

This commit is contained in:
2026-07-26 17:06:05 +02:00
parent 8fa9aa516e
commit a1c7ad7120
8 changed files with 64 additions and 10 deletions
+12
View File
@@ -181,6 +181,18 @@ export async function updateAws(ctr: any) {
return makeResponse({ ctr, content: { code: 200, message: `Connected as ${validation.arn}`, data: { arn: validation.arn } } });
}
export async function skipSetupWizard(ctr: any) {
const user = requireAuth(ctr);
if (!user) return makeResponse({ ctr, content: { code: 401, message: ERROR_MESSAGES.UNAUTHORIZED.message } });
await prisma.user.update({
where: { id: user.id },
data: { setupSkipped: true },
});
return makeResponse({ ctr, content: { code: 200, message: "Setup wizard skipped" } });
}
export async function getWebhookSecret(ctr: any) {
const user = requireAuth(ctr);
if (!user) return makeResponse({ ctr, content: { code: 401, message: ERROR_MESSAGES.UNAUTHORIZED.message } });