From 20e7c40ec57bc70f2a5d5cddc4716a4f2dae3693 Mon Sep 17 00:00:00 2001 From: Nicholai Date: Thu, 23 Oct 2025 03:29:01 +0000 Subject: [PATCH] fixt: markdown linting --- docs/NEXTCLOUD-OAUTH-SETUP.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/NEXTCLOUD-OAUTH-SETUP.md b/docs/NEXTCLOUD-OAUTH-SETUP.md index 0653513ec..4a4133112 100644 --- a/docs/NEXTCLOUD-OAUTH-SETUP.md +++ b/docs/NEXTCLOUD-OAUTH-SETUP.md @@ -260,35 +260,46 @@ United Tattoo Studio Team ### Issue: Duplicate artist profiles created **Possible causes:** + - Email mismatch between Nextcloud and database - User signed in before email was matched **Solution:** + 1. Identify duplicate records: + ```sql SELECT * FROM artists WHERE user_id IN ( SELECT user_id FROM artists GROUP BY user_id HAVING COUNT(*) > 1 ); ``` + 2. Manually merge duplicates by updating portfolio images to point to the correct artist 3. Delete the duplicate artist profile ### Issue: Artist can't access dashboard after sign-in **Possible causes:** + - Artist profile not created during auto-provisioning - Database transaction failed **Solution:** + 1. Check if user exists: + ```sql SELECT * FROM users WHERE email = 'artist@example.com'; ``` + 2. Check if artist profile exists: + ```sql SELECT * FROM artists WHERE user_id = 'user-id-from-above'; ``` + 3. If user exists but artist doesn't, manually create artist: + ```sql INSERT INTO artists (id, user_id, name, bio, specialties, is_active, slug) VALUES ('uuid', 'user-id', 'Artist Name', '', '[]', 1, 'artist-name');