fixt: markdown linting

This commit is contained in:
Nicholai 2025-10-23 03:29:01 +00:00
parent 45e62fb2ef
commit 65dce73681

View File

@ -260,35 +260,46 @@ United Tattoo Studio Team
### Issue: Duplicate artist profiles created ### Issue: Duplicate artist profiles created
**Possible causes:** **Possible causes:**
- Email mismatch between Nextcloud and database - Email mismatch between Nextcloud and database
- User signed in before email was matched - User signed in before email was matched
**Solution:** **Solution:**
1. Identify duplicate records: 1. Identify duplicate records:
```sql ```sql
SELECT * FROM artists WHERE user_id IN ( SELECT * FROM artists WHERE user_id IN (
SELECT user_id FROM artists GROUP BY user_id HAVING COUNT(*) > 1 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 2. Manually merge duplicates by updating portfolio images to point to the correct artist
3. Delete the duplicate artist profile 3. Delete the duplicate artist profile
### Issue: Artist can't access dashboard after sign-in ### Issue: Artist can't access dashboard after sign-in
**Possible causes:** **Possible causes:**
- Artist profile not created during auto-provisioning - Artist profile not created during auto-provisioning
- Database transaction failed - Database transaction failed
**Solution:** **Solution:**
1. Check if user exists: 1. Check if user exists:
```sql ```sql
SELECT * FROM users WHERE email = 'artist@example.com'; SELECT * FROM users WHERE email = 'artist@example.com';
``` ```
2. Check if artist profile exists: 2. Check if artist profile exists:
```sql ```sql
SELECT * FROM artists WHERE user_id = 'user-id-from-above'; SELECT * FROM artists WHERE user_id = 'user-id-from-above';
``` ```
3. If user exists but artist doesn't, manually create artist: 3. If user exists but artist doesn't, manually create artist:
```sql ```sql
INSERT INTO artists (id, user_id, name, bio, specialties, is_active, slug) INSERT INTO artists (id, user_id, name, bio, specialties, is_active, slug)
VALUES ('uuid', 'user-id', 'Artist Name', '', '[]', 1, 'artist-name'); VALUES ('uuid', 'user-id', 'Artist Name', '', '[]', 1, 'artist-name');