fix: Integrate asset URL fix into recovery process and update docs
This commit is contained in:
@@ -66,19 +66,9 @@ if [ "$MICRODAO_COUNT" -lt 5 ] || [ "$AGENT_COUNT" -lt 10 ]; then
|
||||
# Remove test agents
|
||||
bash scripts/remove-test-agents.sh 2>&1 | tail -3 || true
|
||||
|
||||
# Restore asset URLs (logos and banners)
|
||||
log "🖼️ Restoring asset URLs..."
|
||||
docker exec daarion-postgres psql -U postgres -d daarion -c "
|
||||
UPDATE microdaos
|
||||
SET logo_url = 'https://assets.daarion.space/daarion-assets/microdao/logo/' || slug || '.png'
|
||||
WHERE logo_url IS NOT NULL
|
||||
AND (logo_url LIKE '/assets/%' OR logo_url NOT LIKE 'https://%');
|
||||
|
||||
UPDATE microdaos
|
||||
SET banner_url = NULL
|
||||
WHERE banner_url IS NOT NULL
|
||||
AND (banner_url LIKE '/api/static/%' OR banner_url NOT LIKE 'https://%');
|
||||
" 2>&1 | grep -v "UPDATE\|^$" || true
|
||||
# Fix asset URLs (logos and banners)
|
||||
log "🖼️ Fixing asset URLs..."
|
||||
bash scripts/fix-asset-urls.sh 2>&1 | tail -5 || true
|
||||
|
||||
log "✅ Recovery complete"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user